@@ -85,7 +85,7 @@ pub fn do_not_run_ignored_tests() {
85
85
let ( tx, rx) = channel ( ) ;
86
86
run_test ( & TestOpts :: new ( ) , false , desc, RunStrategy :: InProcess , tx, Concurrent :: No ) ;
87
87
let result = rx. recv ( ) . unwrap ( ) . result ;
88
- assert ! ( result != TrOk ) ;
88
+ assert_ne ! ( result, TrOk ) ;
89
89
}
90
90
91
91
#[ test]
@@ -104,7 +104,7 @@ pub fn ignored_tests_result_in_ignored() {
104
104
let ( tx, rx) = channel ( ) ;
105
105
run_test ( & TestOpts :: new ( ) , false , desc, RunStrategy :: InProcess , tx, Concurrent :: No ) ;
106
106
let result = rx. recv ( ) . unwrap ( ) . result ;
107
- assert ! ( result == TrIgnored ) ;
107
+ assert_eq ! ( result, TrIgnored ) ;
108
108
}
109
109
110
110
// FIXME: Re-enable emscripten once it can catch panics again (introduced by #65251)
@@ -127,7 +127,7 @@ fn test_should_panic() {
127
127
let ( tx, rx) = channel ( ) ;
128
128
run_test ( & TestOpts :: new ( ) , false , desc, RunStrategy :: InProcess , tx, Concurrent :: No ) ;
129
129
let result = rx. recv ( ) . unwrap ( ) . result ;
130
- assert ! ( result == TrOk ) ;
130
+ assert_eq ! ( result, TrOk ) ;
131
131
}
132
132
133
133
// FIXME: Re-enable emscripten once it can catch panics again (introduced by #65251)
@@ -150,7 +150,7 @@ fn test_should_panic_good_message() {
150
150
let ( tx, rx) = channel ( ) ;
151
151
run_test ( & TestOpts :: new ( ) , false , desc, RunStrategy :: InProcess , tx, Concurrent :: No ) ;
152
152
let result = rx. recv ( ) . unwrap ( ) . result ;
153
- assert ! ( result == TrOk ) ;
153
+ assert_eq ! ( result, TrOk ) ;
154
154
}
155
155
156
156
// FIXME: Re-enable emscripten once it can catch panics again (introduced by #65251)
@@ -227,7 +227,7 @@ fn test_should_panic_but_succeeds() {
227
227
let ( tx, rx) = channel ( ) ;
228
228
run_test ( & TestOpts :: new ( ) , false , desc, RunStrategy :: InProcess , tx, Concurrent :: No ) ;
229
229
let result = rx. recv ( ) . unwrap ( ) . result ;
230
- assert ! ( result == TrFailedMsg ( "test did not panic as expected" . to_string( ) ) ) ;
230
+ assert_eq ! ( result, TrFailedMsg ( "test did not panic as expected" . to_string( ) ) ) ;
231
231
}
232
232
233
233
fn report_time_test_template ( report_time : bool ) -> Option < TestExecTime > {
@@ -601,7 +601,7 @@ pub fn sort_tests() {
601
601
] ;
602
602
603
603
for ( a, b) in expected. iter ( ) . zip ( filtered) {
604
- assert ! ( * a == b. desc. name. to_string( ) ) ;
604
+ assert_eq ! ( * a, b. desc. name. to_string( ) ) ;
605
605
}
606
606
}
607
607
0 commit comments