(expected: bool, value: T, inherent: impl FnOnce(&T) -> bool)
| 21 | |
| 22 | #[track_caller] |
| 23 | fn case<T: Flags + std::fmt::Debug>(expected: bool, value: T, inherent: impl FnOnce(&T) -> bool) { |
| 24 | assert_eq!(expected, inherent(&value), "{:?}.is_empty()", value); |
| 25 | assert_eq!( |
| 26 | expected, |
| 27 | Flags::is_empty(&value), |
| 28 | "Flags::is_empty({:?})", |
| 29 | value |
| 30 | ); |
| 31 | } |