[position] Remove the rook_push_mask test from check.rs

This test now lives in move_generator::tests::peterellisjones
This commit is contained in:
Eryn Wells 2024-02-04 19:26:11 -08:00
parent f4e57d7d6c
commit 17410936ab

View file

@ -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]);
}
}