File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments