Improve tests for liballoc/btree/set
This commit is contained in:
parent
623debfe9d
commit
33445aea50
@ -10,7 +10,7 @@ fn test_clone_eq() {
|
|||||||
m.insert(1);
|
m.insert(1);
|
||||||
m.insert(2);
|
m.insert(2);
|
||||||
|
|
||||||
assert!(m.clone() == m);
|
assert_eq!(m.clone(), m);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -28,7 +28,7 @@ fn test_hash() {
|
|||||||
y.insert(2);
|
y.insert(2);
|
||||||
y.insert(1);
|
y.insert(1);
|
||||||
|
|
||||||
assert!(hash(&x) == hash(&y));
|
assert_eq!(hash(&x), hash(&y));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check<F>(a: &[i32], b: &[i32], expected: &[i32], f: F)
|
fn check<F>(a: &[i32], b: &[i32], expected: &[i32], f: F)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user