about summary refs log tree commit diff
path: root/src/liballoc/tests
diff options
context:
space:
mode:
authorSayan Nandan <17377258+sntdevco@users.noreply.github.com>2019-08-09 12:53:14 +0530
committerGitHub <noreply@github.com>2019-08-09 12:53:14 +0530
commit33445aea509cadcd715009c79795d289268daa7c (patch)
tree1fda6b4d64845dd220782c756a5df6a936dc4c47 /src/liballoc/tests
parent623debfe9dcbb70bcb5fd891db2e861d91e1b8a9 (diff)
downloadrust-33445aea509cadcd715009c79795d289268daa7c.tar.gz
rust-33445aea509cadcd715009c79795d289268daa7c.zip
Improve tests for liballoc/btree/set
Diffstat (limited to 'src/liballoc/tests')
-rw-r--r--src/liballoc/tests/btree/set.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/tests/btree/set.rs b/src/liballoc/tests/btree/set.rs
index 4f5168f1ce5..9e031375949 100644
--- a/src/liballoc/tests/btree/set.rs
+++ b/src/liballoc/tests/btree/set.rs
@@ -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)