[board] Add another test to the position flags
This commit is contained in:
parent
953c2f1522
commit
284b3b68a0
1 changed files with 6 additions and 0 deletions
|
@ -69,5 +69,11 @@ mod tests {
|
|||
assert!(!flags.player_has_right_to_castle(Color::White, BoardSide::Queen));
|
||||
assert!(flags.player_has_right_to_castle(Color::Black, BoardSide::King));
|
||||
assert!(flags.player_has_right_to_castle(Color::Black, BoardSide::Queen));
|
||||
|
||||
flags.set_player_has_right_to_castle_flag(Color::White, BoardSide::Queen);
|
||||
assert!(flags.player_has_right_to_castle(Color::White, BoardSide::King));
|
||||
assert!(flags.player_has_right_to_castle(Color::White, BoardSide::Queen));
|
||||
assert!(flags.player_has_right_to_castle(Color::Black, BoardSide::King));
|
||||
assert!(flags.player_has_right_to_castle(Color::Black, BoardSide::Queen));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue