Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/bitflags/src/tests/empty.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / bitflags / src / tests / empty.rs` 23 lines ยท 455 bytes Raw Blame History 1 use super::*; 2 3 use crate::Flags; 4 5 #[test] 6 fn cases() { 7 case(0, TestFlags::empty); 8 9 case(0, TestZero::empty); 10 11 case(0, TestEmpty::empty); 12 13 case(0, TestExternal::empty); 14 } 15 16 #[track_caller] 17 fn case(expected: T::Bits, inherent: impl FnOnce() -> T) 18 where 19 ::Bits: std::fmt::Debug + PartialEq, 20 { 21 assert_eq!(expected, inherent().bits(), "T::empty()"); 22 assert_eq!(expected, T::empty().bits(), "Flags::empty()"); 23 }