()
| 75 | |
| 76 | #[test] |
| 77 | fn test_complex_operations() { |
| 78 | assert_eq!(flag_to_string(Flags::A | (Flags::B & Flags::C)), "A"); |
| 79 | assert_eq!( |
| 80 | flag_to_string((Flags::A | Flags::B) & (Flags::B | Flags::C)), |
| 81 | "B" |
| 82 | ); |
| 83 | assert_eq!( |
| 84 | flag_to_string(Flags::A ^ (Flags::B | Flags::C)), |
| 85 | "A or B or C" |
| 86 | ); |
| 87 | } |
| 88 | |
| 89 | #[test] |
| 90 | fn test_empty_and_full_flags() { |
nothing calls this directly
no outgoing calls
no test coverage detected