Skip to content

Commit 5131536

Browse files
committed
todo
1 parent 740dace commit 5131536

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/example_flags.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,14 @@ fn test_clip_invalid_flags() {
4343
fn test_example_node_flags() {
4444
example_node_flags();
4545
}
46+
47+
#[test]
48+
fn test_bit_ops() {
49+
let options = SimplificationOptions::default();
50+
assert!(!options.contains(SimplificationOptions::KEEP_INPUT_ROOTS));
51+
assert!((options & SimplificationOptions::KEEP_INPUT_ROOTS) == 0.into());
52+
let mut options = options | SimplificationOptions::REDUCE_TO_SITE_TOPOLOGY;
53+
assert!(!options.contains(SimplificationOptions::KEEP_INPUT_ROOTS));
54+
assert!(options.contains(SimplificationOptions::REDUCE_TO_SITE_TOPOLOGY));
55+
todo!("need to do more of the op traits");
56+
}

0 commit comments

Comments
 (0)