[position] Update the danger_squares unit test to use assert_eq_bitboards!()
This commit is contained in:
parent
27a36565f3
commit
21b58a6422
1 changed files with 2 additions and 6 deletions
|
@ -379,7 +379,7 @@ impl fmt::Display for Position {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::{position, test_position, Position, PositionBuilder};
|
||||
use crate::{assert_eq_bitboards, position, test_position, Position, PositionBuilder};
|
||||
use chessfriend_bitboard::bitboard;
|
||||
use chessfriend_core::piece;
|
||||
|
||||
|
@ -474,10 +474,6 @@ mod tests {
|
|||
let danger_squares = pos.king_danger(Color::Black);
|
||||
let expected =
|
||||
bitboard![D1, F1, D2, E2, F2, E3, A4, B4, C4, D4, F4, G4, H4, E5, E6, E7, E8];
|
||||
assert_eq!(
|
||||
danger_squares, expected,
|
||||
"Actual:\n{}\n\nExpected:\n{}",
|
||||
danger_squares, expected
|
||||
);
|
||||
assert_eq_bitboards!(danger_squares, expected);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue