Skip to content

Commit c1eb539

Browse files
committed
Use assert_eq! instead of assert!
1 parent 96cb0dc commit c1eb539

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/libcore/tuple.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,24 +397,24 @@ impl_n_tuple!(Tuple12:
397397
#[test]
398398
fn test_tuple_ref() {
399399
let x = (~"foo", ~"bar");
400-
assert!(x.first_ref() == &~"foo");
401-
assert!(x.second_ref() == &~"bar");
400+
assert_eq!(x.first_ref(), &~"foo");
401+
assert_eq!(x.second_ref(), &~"bar");
402402
}
403403
404404
#[test]
405405
#[allow(non_implicitly_copyable_typarams)]
406406
fn test_tuple() {
407-
assert!((948, 4039.48).first() == 948);
408-
assert!((34.5, ~"foo").second() == ~"foo");
409-
assert!(('a', 2).swap() == (2, 'a'));
407+
assert_eq!((948, 4039.48).first(), 948);
408+
assert_eq!((34.5, ~"foo").second(), ~"foo");
409+
assert_eq!(('a', 2).swap(), (2, 'a'));
410410
}
411411
412412
#[test]
413413
fn test_clone() {
414414
let a = (1, ~"2");
415415
let b = a.clone();
416-
assert!(a.first() == b.first());
417-
assert!(a.second() == b.second());
416+
assert_eq!(a.first(), b.first());
417+
assert_eq!(a.second(), b.second());
418418
}
419419

420420
#[test]

0 commit comments

Comments
 (0)