From b0696bbd21d2063beacc8ec428ce27b0fee3bf1f Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Fri, 20 Jun 2003 08:33:46 +0000 Subject: [PATCH] a little bugfix of the test-tool --- lib/redblack-test.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/redblack-test.c b/lib/redblack-test.c index 967120a7..575d645f 100644 --- a/lib/redblack-test.c +++ b/lib/redblack-test.c @@ -191,13 +191,6 @@ main(int argc, char **argv) my_dump(NULL, &t); } my_dump(dump_fb, &t); - for (i=0; i<997; i++) - { - int res UNUSED = my_delete(&t, i*111 % 997); - ASSERT(res); - my_dump(NULL, &t); - } - my_dump(dump_fb, &t); i = 0; TREE_FOR_ALL(my, &t, n) { @@ -205,6 +198,14 @@ main(int argc, char **argv) i++; } TREE_END_FOR; + ASSERT(i == 997); + for (i=0; i<997; i++) + { + int res UNUSED = my_delete(&t, i*111 % 997); + ASSERT(res); + my_dump(NULL, &t); + } + my_dump(dump_fb, &t); my_cleanup(&t); if (verbose > 0) bputs(fb, "Complete tree passed\n"); -- 2.39.2