Skip to content

Commit 33445ae

Browse files
authored
Improve tests for liballoc/btree/set
1 parent 623debf commit 33445ae

File tree

1 file changed

+2
-2
lines changed
  • src/liballoc/tests/btree

1 file changed

+2
-2
lines changed

src/liballoc/tests/btree/set.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn test_clone_eq() {
1010
m.insert(1);
1111
m.insert(2);
1212

13-
assert!(m.clone() == m);
13+
assert_eq!(m.clone(), m);
1414
}
1515

1616
#[test]
@@ -28,7 +28,7 @@ fn test_hash() {
2828
y.insert(2);
2929
y.insert(1);
3030

31-
assert!(hash(&x) == hash(&y));
31+
assert_eq!(hash(&x), hash(&y));
3232
}
3333

3434
fn check<F>(a: &[i32], b: &[i32], expected: &[i32], f: F)

0 commit comments

Comments
 (0)