File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -30,18 +30,6 @@ fn bool_nand() {
3030 assert_eq ! ( a. fetch_nand( true , SeqCst ) , false ) ;
3131 assert_eq ! ( a. load( SeqCst ) , true ) ;
3232}
33- #[ test]
34- fn bool_not ( ) {
35- let a = AtomicBool :: new ( false ) ;
36- assert_eq ! ( a. fetch_not( SeqCst ) , false ) ;
37- assert_eq ! ( a. load( SeqCst ) , true ) ;
38- assert_eq ! ( a. fetch_not( SeqCst ) , true ) ;
39- assert_eq ! ( a. load( SeqCst ) , false ) ;
40- assert_eq ! ( a. fetch_not( SeqCst ) , false ) ;
41- assert_eq ! ( a. load( SeqCst ) , true ) ;
42- assert_eq ! ( a. fetch_not( SeqCst ) , true ) ;
43- assert_eq ! ( a. load( SeqCst ) , false ) ;
44- }
4533
4634#[ test]
4735fn uint_and ( ) {
@@ -170,8 +158,6 @@ fn atomic_access_bool() {
170158 assert_eq ! ( * ATOMIC . get_mut( ) , true ) ;
171159 ATOMIC . fetch_xor ( true , SeqCst ) ;
172160 assert_eq ! ( * ATOMIC . get_mut( ) , false ) ;
173- ATOMIC . fetch_not ( SeqCst ) ;
174- assert_eq ! ( * ATOMIC . get_mut( ) , true ) ;
175161 }
176162}
177163
You can’t perform that action at this time.
0 commit comments