[position] Remove the rook_push_mask test from check.rs
This test now lives in move_generator::tests::peterellisjones
This commit is contained in:
parent
f4e57d7d6c
commit
17410936ab
1 changed files with 0 additions and 24 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue