a
This commit is contained in:
@@ -3,7 +3,6 @@ use super::{
|
||||
coords::{CoordPair, CoordPairInner},
|
||||
CoordAxis,
|
||||
};
|
||||
use num::PrimInt;
|
||||
use static_assertions::const_assert;
|
||||
|
||||
#[cfg(not(feature = "bitvec"))]
|
||||
@@ -155,14 +154,13 @@ mod test {
|
||||
#[test]
|
||||
fn set_and_get() {
|
||||
let mut b = BitBoard::new();
|
||||
for i in 0..Board::BOARD_SIZE {
|
||||
for j in 0..Board::BOARD_SIZE {
|
||||
assert!(
|
||||
!b.get((i, j).into()),
|
||||
"A just-initalized BitBoard should be completely empty"
|
||||
)
|
||||
}
|
||||
for c in 0..Board::BOARD_AREA {
|
||||
assert!(
|
||||
!b.get(CoordPair(c)),
|
||||
"A just-initalized BitBoard should be completely empty"
|
||||
)
|
||||
}
|
||||
|
||||
assert!(!b.get((2, 4).into()));
|
||||
b.set((2, 4).into(), true);
|
||||
assert!(b.get((2, 4).into()));
|
||||
|
||||
Reference in New Issue
Block a user