aboutsummaryrefslogtreecommitdiff
path: root/src/attacks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/attacks.rs')
-rw-r--r--src/attacks.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/attacks.rs b/src/attacks.rs
index 2c8e55f..8217ce6 100644
--- a/src/attacks.rs
+++ b/src/attacks.rs
@@ -321,7 +321,7 @@ mod tests {
1 << Square::F3 as usize;
#[test]
- fn test_pawn_attacks() {
+ fn pawn_attacks() {
let attacks = Attacks::precompute_pawn_attacks();
let square = Square::E4 as usize;
let white_attacks = attacks[Color::White as usize][square];
@@ -338,7 +338,7 @@ mod tests {
}
#[test]
- fn test_pawn_pushes() {
+ fn pawn_pushes() {
let (pushes, double_pushes) = Attacks::precompute_pawn_pushes();
assert_eq!(pushes[Color::White as usize][Square::E4 as usize], Square::E5.to_bitboard());
assert_eq!(pushes[Color::White as usize][Square::A2 as usize], Square::A3.to_bitboard());
@@ -352,7 +352,7 @@ mod tests {
}
#[test]
- fn test_knight_attacks() {
+ fn knight_attacks() {
let attacks = Attacks::precompute_knight_attacks();
let e4_attacks = attacks[Square::E4 as usize];
@@ -376,7 +376,7 @@ mod tests {
}
#[test]
- fn test_king_attacks() {
+ fn king_attacks() {
let attacks = Attacks::precompute_king_attacks();
print(attacks[Square::E4 as usize], "King e4");
@@ -395,7 +395,7 @@ mod tests {
}
#[test]
- fn test_first_rank_attacks() {
+ fn first_rank_attacks() {
let attacks = Attacks::precompute_first_rank_attacks();
// HGFEDCBA HGFEDCBA
assert_eq!(attacks[0b00010000][4], 0b11101111, "If rook is the only piece on a rank, it should be able to attack all rank");
@@ -412,7 +412,7 @@ mod tests {
}
#[test]
- fn test_ray_attacks() {
+ fn ray_attacks() {
let attacks = Attacks::precompute_ray_attacks();
let square = Square::E4 as usize;
let bitboard =
@@ -428,7 +428,7 @@ mod tests {
}
#[test]
- fn test_bishop_attacks() {
+ fn bishop_attacks() {
let attacks = Attacks::new();
let square = Square::E4;
let bb = attacks.bishop(DEFAULT_OCCUPANCY, square);
@@ -446,7 +446,7 @@ mod tests {
}
#[test]
- fn test_rook_attacks() {
+ fn rook_attacks() {
let attacks = Attacks::new();
let square = Square::E4;
let occupancy =
@@ -473,7 +473,7 @@ mod tests {
}
#[test]
- fn test_queen_attacks() {
+ fn queen_attacks() {
let attacks = Attacks::new();
let square = Square::E4;
let bb = attacks.queen(DEFAULT_OCCUPANCY, square);