mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-28 15:43:21 +00:00
temporarily remove tests because I'm not sure if we need them
This commit is contained in:
parent
7d5f236c3d
commit
0df7364cdf
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user