diff --git a/position/src/check.rs b/position/src/check.rs index df30749..218ef58 100644 --- a/position/src/check.rs +++ b/position/src/check.rs @@ -71,27 +71,3 @@ impl CheckingPieces { &self.bitboards[shape as usize] } } - -#[cfg(test)] -mod tests { - use super::*; - use chessfriend_bitboard::{bitboard, BitBoard}; - - /// This is a test position from [this execellent blog post][1] about how to - /// efficiently generate legal chess moves. - /// - /// [1]: https://peterellisjones.com/posts/generating-legal-chess-moves-efficiently/ - #[test] - fn rook_push_mask() { - let checks = CheckingPieces::new( - BitBoard::EMPTY, - BitBoard::EMPTY, - BitBoard::EMPTY, - bitboard![E5], - BitBoard::EMPTY, - ); - - let push_mask = checks.push_mask(&bitboard![E8]); - assert_eq!(push_mask, bitboard![E6, E7]); - } -}