Skip to content

Commit

Permalink
fix one last test
Browse files Browse the repository at this point in the history
  • Loading branch information
irevoire committed Sep 26, 2024
1 parent 5b878cf commit 852788a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/node_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ mod test {
assert!(NodeId::tree(1) > NodeId::tree(0));
assert!(NodeId::tree(0) < NodeId::tree(1));

// tree > item whatever is the value
assert!(NodeId::tree(0) > NodeId::item(1));
// tree < item whatever is the value
assert!(NodeId::tree(u32::MAX) < NodeId::item(0));

assert!(NodeId::metadata() == NodeId::metadata());
assert!(NodeId::metadata() > NodeId::tree(12));
assert!(NodeId::metadata() > NodeId::item(12));
assert!(NodeId::metadata() < NodeId::tree(u32::MAX));
assert!(NodeId::metadata() < NodeId::item(u32::MAX));
}
}

0 comments on commit 852788a

Please sign in to comment.