Skip to content

Commit cadec3f

Browse files
committed
more
1 parent c271eb8 commit cadec3f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/example_flags.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,14 @@ fn test_bit_ops() {
3838
assert!(!options.contains(SimplificationOptions::REDUCE_TO_SITE_TOPOLOGY));
3939
let options = options ^ SimplificationOptions::REDUCE_TO_SITE_TOPOLOGY;
4040
assert!(options.contains(SimplificationOptions::REDUCE_TO_SITE_TOPOLOGY));
41+
42+
let mut options = SimplificationOptions::default();
43+
assert!(!options.contains(SimplificationOptions::KEEP_INPUT_ROOTS));
44+
options |= SimplificationOptions::KEEP_INPUT_ROOTS;
45+
assert!(options.contains(SimplificationOptions::KEEP_INPUT_ROOTS));
46+
options &= SimplificationOptions::REDUCE_TO_SITE_TOPOLOGY;
47+
assert_eq!(options, SimplificationOptions::default());
48+
options |= SimplificationOptions::REDUCE_TO_SITE_TOPOLOGY;
49+
assert_ne!(options, SimplificationOptions::default());
4150
todo!("need to do more of the op traits");
4251
}

0 commit comments

Comments
 (0)