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 740dace commit 5131536Copy full SHA for 5131536
tests/example_flags.rs
@@ -43,3 +43,14 @@ fn test_clip_invalid_flags() {
43
fn test_example_node_flags() {
44
example_node_flags();
45
}
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
54
+ assert!(options.contains(SimplificationOptions::REDUCE_TO_SITE_TOPOLOGY));
55
+ todo!("need to do more of the op traits");
56
+}
0 commit comments