test/avl_tests.c

changeset 203
3d999ea3f780
parent 201
45810f5b7b84
child 204
4477987d40cd
equal deleted inserted replaced
202:4c84dd2408d7 203:3d999ea3f780
197 197
198 for(int i=0;i<20;i++) { 198 for(int i=0;i<20;i++) {
199 ucx_avl_remove(tree2, i); 199 ucx_avl_remove(tree2, i);
200 UCX_TEST_ASSERT(check_tree(tree2->root), "check_tree failed (tree2)"); 200 UCX_TEST_ASSERT(check_tree(tree2->root), "check_tree failed (tree2)");
201 } 201 }
202 UCX_TEST_ASSERT(tree2->root == NULL, "root not NULL (tree2)");
202 203
203 for(int i=0;i<100000;i++) { 204 for(int i=0;i<100000;i++) {
204 ucx_avl_put(tree3, i, data1); 205 ucx_avl_put(tree3, i, data1);
205 } 206 }
206 for(int i=100000-1;i>=0;i--) { 207 for(int i=100000-1;i>=0;i--) {

mercurial