Skip to content

Commit

Permalink
Improve tests for liballoc/btree/set
Browse files Browse the repository at this point in the history
  • Loading branch information
ohsayan committed Aug 9, 2019
1 parent 623debf commit 33445ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/liballoc/tests/btree/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn test_clone_eq() {
m.insert(1);
m.insert(2);

assert!(m.clone() == m);
assert_eq!(m.clone(), m);
}

#[test]
Expand All @@ -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)
Expand Down

0 comments on commit 33445ae

Please sign in to comment.