1
0
Fork 0
This commit is contained in:
Paul-Nicolas Madelaine 2025-10-22 01:33:53 +02:00
parent 8733993f1a
commit d9e3879937
4 changed files with 47 additions and 40 deletions

View file

@ -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:?}",
);