add FutureMoves::tests::prune_tree_test parents for children

This commit is contained in:
Simon Gardling 2025-02-25 12:11:40 -05:00
parent 5f7a5fdb00
commit f60de28c58
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -488,6 +488,11 @@ mod tests {
Piece::Black,
Some(0),
));
for i in futm.arena[0].children.clone() {
futm.arena[i].parent = Some(0);
}
assert_eq!(futm.arena_len(), 5);
futm.refocus_tree();