File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 11use tskit:: { NodeFlags , RawFlags , SimplificationOptions } ;
22
3- fn clip_invalid_flags ( ) {
4- // This value contains bits set to 1
5- // that are not valid values for
6- // tskit::SimplificationFlags
7- let f: RawFlags = 1000000 ;
8-
9- // Creating flags from this value will retain invalid
10- // bits, meaning the final value == the input value.
11- let simplification_flags = SimplificationOptions :: from ( f) ;
12-
13- assert_eq ! ( f, simplification_flags. bits( ) ) ;
14- }
15-
163fn example_node_flags ( ) {
174 let f: RawFlags = 1000000 ;
185
@@ -34,11 +21,6 @@ fn example_node_flags() {
3421 assert_eq ! ( node_flags. bits( ) , f) ;
3522}
3623
37- #[ test]
38- fn test_clip_invalid_flags ( ) {
39- clip_invalid_flags ( ) ;
40- }
41-
4224#[ test]
4325fn test_example_node_flags ( ) {
4426 example_node_flags ( ) ;
You can’t perform that action at this time.
0 commit comments