diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/sorted_array_test.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/sorted_array_test.c b/test/sorted_array_test.c index e62a635..fc92933 100644 --- a/test/sorted_array_test.c +++ b/test/sorted_array_test.c @@ -121,6 +121,14 @@ stress(unsigned test_num, unsigned n_elems) last = iter_data; } + if (i != zix_sorted_array_size(t)) { + fprintf(stderr, + "Iterated over only %u/%" PRIuPTR " elements\n", + i, + zix_sorted_array_size(t)); + return test_fail(); + } + srand(seed); // Delete all elements |