Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
zarvd committed Aug 18, 2024
1 parent 662affa commit 109f5dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routing_table/tree_bitmap/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ mod tests {
assert_eq!(
actual,
expected,
"input: ({nibble}, {bits}) = {mask:032b}, expected: {:032b}",
"input: ({nibble:08b}, {bits}) = {mask:032b}, expected: {:032b}",
u32::from_be_bytes(expected),
);
}
Expand All @@ -334,7 +334,7 @@ mod tests {
((0b0000, 1), [0b1100_0000, 0, 0, 0]),
((0b1000, 1), [0b1010_0000, 0, 0, 0]),
((0b0000, 2), [0b1101_0000, 0, 0, 0]),
((0b0100, 2), [0b1101_1000, 0, 0, 0]),
((0b0100, 2), [0b1100_1000, 0, 0, 0]),
];

for (input, expected) in tests.into_iter() {
Expand All @@ -344,7 +344,7 @@ mod tests {
assert_eq!(
actual,
expected,
"input: ({nibble}, {bits}) = {mask:032b}, expected: {:032b}",
"input: ({nibble:08b}, {bits}) = {mask:032b}, expected: {:032b}",
u32::from_be_bytes(expected),
);
}
Expand Down

0 comments on commit 109f5dc

Please sign in to comment.