temporarily remove tests because I'm not sure if we need them

This commit is contained in:
leocth 2022-06-26 00:06:50 +08:00
parent 7d5f236c3d
commit 0df7364cdf
1 changed files with 0 additions and 14 deletions

View File

@ -30,18 +30,6 @@ fn bool_nand() {
assert_eq!(a.fetch_nand(true, SeqCst), false);
assert_eq!(a.load(SeqCst), true);
}
#[test]
fn bool_not() {
let a = AtomicBool::new(false);
assert_eq!(a.fetch_not(SeqCst), false);
assert_eq!(a.load(SeqCst), true);
assert_eq!(a.fetch_not(SeqCst), true);
assert_eq!(a.load(SeqCst), false);
assert_eq!(a.fetch_not(SeqCst), false);
assert_eq!(a.load(SeqCst), true);
assert_eq!(a.fetch_not(SeqCst), true);
assert_eq!(a.load(SeqCst), false);
}
#[test]
fn uint_and() {
@ -170,8 +158,6 @@ fn atomic_access_bool() {
assert_eq!(*ATOMIC.get_mut(), true);
ATOMIC.fetch_xor(true, SeqCst);
assert_eq!(*ATOMIC.get_mut(), false);
ATOMIC.fetch_not(SeqCst);
assert_eq!(*ATOMIC.get_mut(), true);
}
}