Fix test case according to contract.

This commit is contained in:
Patrick Pelissier committed 2023-04-19 22:37:54 +02:00
1 parent a6c1688f23
commit acd8671017
1 file changed
+7 -2
+7 -2
View File
@@ -460,10 +460,15 @@ static void test_gen(void)
tree_set(t, t0);
j = 0;
for(it = tree_it(t); j <= i && !tree_end_p(it); tree_next(&it), j++) {
if (i ==j)
if (i ==j) {
tree_remove(it);
break;
}
}
tree_insert_right(tree_it(t), 185555569);
it = tree_it(t);
while (tree_it_down(&it)) ;
while (tree_it_right(&it)) ;
tree_insert_right(it, 185555569);
assert(!tree_equal_p(t, t0));
assert(!tree_equal_p(t0, t));
}