Skip to content

Commit 6d73a8f

Browse files
committed
Improved test output for libcore/cell
1 parent 9445f2b commit 6d73a8f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libcore/tests/cell.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ use std::mem::drop;
55
#[test]
66
fn smoketest_cell() {
77
let x = Cell::new(10);
8-
assert!(x == Cell::new(10));
9-
assert!(x.get() == 10);
8+
assert_eq!(x, Cell::new(10));
9+
assert_eq!(x.get(), 10);
1010
x.set(20);
11-
assert!(x == Cell::new(20));
12-
assert!(x.get() == 20);
11+
assert_eq!(x, Cell::new(20));
12+
assert_eq!(x.get(), 20);
1313

1414
let y = Cell::new((30, 40));
15-
assert!(y == Cell::new((30, 40)));
16-
assert!(y.get() == (30, 40));
15+
assert_eq!(y, Cell::new((30, 40)));
16+
assert_eq!(y.get(), (30, 40));
1717
}
1818

1919
#[test]

0 commit comments

Comments
 (0)