aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / vendor / bitflags / src / tests / eq.rs
| 1 | use super::*; |
| 2 | |
| 3 | #[test] |
| 4 | fn cases() { |
| 5 | assert_eq!(TestFlags::empty(), TestFlags::empty()); |
| 6 | assert_eq!(TestFlags::all(), TestFlags::all()); |
| 7 | |
| 8 | assert!(TestFlags::from_bits_retain(1) < TestFlags::from_bits_retain(2)); |
| 9 | assert!(TestFlags::from_bits_retain(2) > TestFlags::from_bits_retain(1)); |
| 10 | } |