chiark / gitweb /
Fiddle with playing.tmpl a bit. not fully translated
[disorder] / lib / t-hash.c
index b5c0094a79e159c8fed96a27941a2e394521ed9d..d9e833689dfa5d5d20c2c4f1918765945d7858b8 100644 (file)
  */
 #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