We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cee5643 commit adca300Copy full SHA for adca300
test_suite/common.rs
@@ -82,11 +82,11 @@ fn test_mutation() {
82
}
83
84
#[test]
85
-fn test_to_flag() {
+fn test_exactly_one() {
86
use enumflags2::BitFlags;
87
- assert_eq!(BitFlags::<Test>::empty().to_flag(), None);
88
- assert_eq!(BitFlags::<Test>::from(Test::B).to_flag(), Some(Test::B));
89
- assert_eq!((Test::A | Test::C).to_flag(), None);
+ assert_eq!(BitFlags::<Test>::empty().exactly_one(), None);
+ assert_eq!(BitFlags::<Test>::from(Test::B).exactly_one(), Some(Test::B));
+ assert_eq!((Test::A | Test::C).exactly_one(), None);
90
91
92
0 commit comments