about summary refs log tree commit diff
path: root/src/liballoc/tests
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-09 14:07:32 +0200
committerGitHub <noreply@github.com>2019-08-09 14:07:32 +0200
commit171e8457d07863428e0467cc756c0c68d8c66847 (patch)
tree781dc0d6165e143cd9859102006a3f8493096ea9 /src/liballoc/tests
parent7a251629a2236b2d0a99e462b4db67d33d872aaf (diff)
parentfb3a01354ffecc41d7a189e4dd225d706387a522 (diff)
downloadrust-171e8457d07863428e0467cc756c0c68d8c66847.tar.gz
rust-171e8457d07863428e0467cc756c0c68d8c66847.zip
Rollup merge of #63403 - sntdevco:master, r=Centril
Improve test output

I'm continuing to improve the test output for liballoc and libcore
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 989beb3b1bf..8c3dacd914f 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)