Fix the remaining tests
Well… all the tests except the Peter Ellis Jones tests. Pass around whole EnPassant types instead of pulling out just the e.p. square. Make sure that Castling moves have their target and origin squares populated. Add a color field to the Castle move style to make this possible.
This commit is contained in:
parent
d2fe546824
commit
5f1fce6cc2
10 changed files with 142 additions and 83 deletions
|
@ -101,7 +101,7 @@ fn move_flags_capture_promotion() -> TestResult {
|
|||
|
||||
#[test]
|
||||
fn move_flags_castle() -> TestResult {
|
||||
let mv = Builder::castling(Castle::KingSide).build();
|
||||
let mv = Builder::castling(Color::White, Castle::KingSide).build()?;
|
||||
|
||||
assert_flags!(mv, false, false, false, false, true, false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue