X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/b90f122bd10bd896f2f9b0cf5676bcd436a7d42e..c6e44487b124077c23c7e95059b908c77ffdc4a3:/lib/t-hash.c diff --git a/lib/t-hash.c b/lib/t-hash.c index b5c0094..d9e8336 100644 --- a/lib/t-hash.c +++ b/lib/t-hash.c @@ -19,12 +19,11 @@ */ #include "test.h" -void test_hash(void) { +static void test_hash(void) { hash *h; int i, *ip; char **keys; - fprintf(stderr, "test_hash\n"); h = hash_new(sizeof(int)); for(i = 0; i < 10000; ++i) insist(hash_add(h, do_printf("%d", i), &i, HASH_INSERT) == 0); @@ -44,6 +43,8 @@ void test_hash(void) { check_integer(hash_count(h), 0); } +TEST(hash); + /* Local Variables: c-basic-offset:2