X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/b90f122bd10bd896f2f9b0cf5676bcd436a7d42e..d0b6635eee6d656502d129e88c65a5014c8e042f:/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