add FutureMoves::tests::prune_tree_test parents for children
This commit is contained in:
parent
5f7a5fdb00
commit
f60de28c58
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user