]> git.lizzy.rs Git - rust.git/commitdiff
Improved test output for libcore/cell
authorsntdevco <nandansayan@outlook.com>
Fri, 15 Mar 2019 11:08:07 +0000 (16:38 +0530)
committersntdevco <nandansayan@outlook.com>
Fri, 15 Mar 2019 11:08:07 +0000 (16:38 +0530)
src/libcore/tests/cell.rs

index b16416022c04e700197081fcdaa016d4fb565655..085d81a36d185717c8a194bd96ca9ea2248623f3 100644 (file)
@@ -5,15 +5,15 @@
 #[test]
 fn smoketest_cell() {
     let x = Cell::new(10);
-    assert!(x == Cell::new(10));
-    assert!(x.get() == 10);
+    assert_eq!(x, Cell::new(10));
+    assert_eq!(x.get(), 10);
     x.set(20);
-    assert!(x == Cell::new(20));
-    assert!(x.get() == 20);
+    assert_eq!(x, Cell::new(20));
+    assert_eq!(x.get(), 20);
 
     let y = Cell::new((30, 40));
-    assert!(y == Cell::new((30, 40)));
-    assert!(y.get() == (30, 40));
+    assert_eq!(y, Cell::new((30, 40)));
+    assert_eq!(y.get(), (30, 40));
 }
 
 #[test]