Skip to content

Commit 33f10e3

Browse files
committed
pass
1 parent 721496a commit 33f10e3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/sys/flags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/example_flags.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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

1716
fn 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

0 commit comments

Comments
 (0)