Fix join-set test to be deterministic. (#10263)
This commit is contained in:
parent
eb3d33ed6f
commit
12c42bce9b
@ -487,7 +487,14 @@ but the first password is trimmed
|
|||||||
let mut test_set = HashSet::new();
|
let mut test_set = HashSet::new();
|
||||||
test_set.insert("0x1111111111111111111111111111111111111111".to_string());
|
test_set.insert("0x1111111111111111111111111111111111111111".to_string());
|
||||||
test_set.insert("0x0000000000000000000000000000000000000000".to_string());
|
test_set.insert("0x0000000000000000000000000000000000000000".to_string());
|
||||||
assert_eq!("0x1111111111111111111111111111111111111111,0x0000000000000000000000000000000000000000".to_string(),
|
|
||||||
join_set(Some(&test_set)).unwrap());
|
|
||||||
|
let res = join_set(Some(&test_set)).unwrap();
|
||||||
|
|
||||||
|
assert!(
|
||||||
|
res == "0x1111111111111111111111111111111111111111,0x0000000000000000000000000000000000000000"
|
||||||
|
||
|
||||||
|
res == "0x0000000000000000000000000000000000000000,0x1111111111111111111111111111111111111111"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user