try from
This commit is contained in:
parent
8733993f1a
commit
d9e3879937
4 changed files with 47 additions and 40 deletions
|
|
@ -44,7 +44,7 @@ fn recursive_check_aux(position: Position, depth: usize) {
|
|||
.en_passant_target_square()
|
||||
.map(|square| square.mirror()),
|
||||
);
|
||||
setup.validate().unwrap()
|
||||
setup.into_position().unwrap()
|
||||
};
|
||||
let expected_mirror = position.mirror();
|
||||
assert_eq!(computed_mirror, expected_mirror);
|
||||
|
|
@ -192,7 +192,7 @@ fn setup() {
|
|||
assert!(
|
||||
Setup::from_text_record(record)
|
||||
.unwrap()
|
||||
.validate()
|
||||
.into_position()
|
||||
.is_err_and(|e| e.reasons().contains(reason)),
|
||||
"{record} should be invalid because of {reason:?}",
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue