File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -397,24 +397,24 @@ impl_n_tuple!(Tuple12:
397
397
#[ test]
398
398
fn test_tuple_ref ( ) {
399
399
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");
402
402
}
403
403
404
404
#[test]
405
405
#[allow(non_implicitly_copyable_typarams)]
406
406
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'));
410
410
}
411
411
412
412
#[test]
413
413
fn test_clone() {
414
414
let a = (1, ~" 2 " ) ;
415
415
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( ) ) ;
418
418
}
419
419
420
420
#[ test]
You can’t perform that action at this time.
0 commit comments