Improve tests for liballoc/btree/set

This commit is contained in:
Sayan Nandan 2019-08-09 12:53:14 +05:30 committed by GitHub
parent 623debfe9d
commit 33445aea50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ fn test_clone_eq() {
m.insert(1);
m.insert(2);
assert!(m.clone() == m);
assert_eq!(m.clone(), m);
}
#[test]
@ -28,7 +28,7 @@ fn test_hash() {
y.insert(2);
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)