Skip to content

Commit

Permalink
eq
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Mar 3, 2024
1 parent bba583a commit 362ca77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blockset-lib/src/info/node_type_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ mod test {
y: NodeType,
union: fn(NodeTypeSet, NodeTypeSet) -> NodeTypeSet,
intersection: fn(NodeTypeSet, NodeTypeSet) -> NodeTypeSet,
eq: fn(NodeTypeSet, NodeTypeSet) -> bool,
) {
let xi = 1 << x as u8;
let yi = 1 << y as u8;
let xs = NodeTypeSet::new(x);
let ys = NodeTypeSet::new(y);
assert!(eq(xs, xs));
assert_eq!(union(xs, ys).0, xi | yi);
assert_eq!(intersection(xs, ys).0, xi & yi);
}
Expand Down

0 comments on commit 362ca77

Please sign in to comment.