Skip to content

Commit

Permalink
test default debug formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SpontanCombust committed Nov 3, 2023
1 parent cf530f8 commit b05aca0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,5 +353,11 @@ mod tests {
assert_eq!(format!("{:?}", BitmaskDebugAsVec::Flag12), "[Flag1, Flag2, Flag12]");
assert_eq!(format!("{:?}", BitmaskDebugAsVec::Flag3), "[Flag3]");
assert_eq!(format!("{:?}", BitmaskDebugAsVec::full()), "[Flag1, Flag2, Flag12, Flag3]");

assert_eq!(format!("{:?}", Bitmask::none()), "Bitmask { bits: 0 }");
assert_eq!(format!("{:?}", Bitmask::Flag1), "Bitmask { bits: 1 }");
assert_eq!(format!("{:?}", Bitmask::Flag2), "Bitmask { bits: 2 }");
assert_eq!(format!("{:?}", Bitmask::Flag1.or(Bitmask::Flag2)), "Bitmask { bits: 3 }");
assert_eq!(format!("{:?}", Bitmask::Flag3), "Bitmask { bits: 4 }");
}
}

0 comments on commit b05aca0

Please sign in to comment.