Skip to content

Commit adca300

Browse files
committed
The tests also need to be modified...
1 parent cee5643 commit adca300

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test_suite/common.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ fn test_mutation() {
8282
}
8383

8484
#[test]
85-
fn test_to_flag() {
85+
fn test_exactly_one() {
8686
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);
87+
assert_eq!(BitFlags::<Test>::empty().exactly_one(), None);
88+
assert_eq!(BitFlags::<Test>::from(Test::B).exactly_one(), Some(Test::B));
89+
assert_eq!((Test::A | Test::C).exactly_one(), None);
9090
}
9191

9292
#[test]

0 commit comments

Comments
 (0)