File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ impl TreeFlags {
506506/// ```
507507/// # use tskit::TableOutputOptions;
508508/// let f = TableOutputOptions::default();
509- /// assert_eq!(f, TableOutputOptions::NONE );
509+ /// # assert_eq!(f, TableOutputOptions::default() );
510510/// ```
511511///
512512/// # Note
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ fn clip_invalid_flags() {
1111 let simplification_flags = SimplificationOptions :: from ( f) ;
1212
1313 assert_eq ! ( f, simplification_flags. bits( ) ) ;
14- assert ! ( simplification_flags. is_valid( ) ) ;
1514}
1615
1716fn example_node_flags ( ) {
@@ -22,19 +21,16 @@ fn example_node_flags() {
2221 let mut node_flags = NodeFlags :: from ( f) ;
2322
2423 assert_eq ! ( node_flags. bits( ) , f) ;
25- assert ! ( node_flags. is_valid( ) ) ;
2624
2725 // The first bit is not set...
2826 assert ! ( !node_flags. contains( NodeFlags :: IS_SAMPLE ) ) ;
2927
3028 // Set the first bit, making the flag indicate "sample"
3129 node_flags. toggle ( NodeFlags :: IS_SAMPLE ) ;
32- assert ! ( node_flags. is_valid( ) ) ;
3330 assert_ne ! ( node_flags. bits( ) , f) ;
3431
3532 // Remove the sample status
3633 node_flags. remove ( NodeFlags :: IS_SAMPLE ) ;
37- assert ! ( node_flags. is_valid( ) ) ;
3834 assert_eq ! ( node_flags. bits( ) , f) ;
3935}
4036
You can’t perform that action at this time.
0 commit comments