chiark / gitweb /
Further macro tests
[disorder] / lib / t-selection.c
index 975f9305c8b765992bd7f239de0c3debbe58a27c..0992efe7083ddda2777a67702e99471bf37ab10b 100644 (file)
@@ -19,9 +19,9 @@
  */
 #include "test.h"
 
-void test_selection(void) {
+static void test_selection(void) {
   hash *h;
-  fprintf(stderr, "test_selection\n");
+
   insist((h = selection_new()) != 0);
   selection_set(h, "one", 1);
   selection_set(h, "two", 1);
@@ -57,6 +57,8 @@ void test_selection(void) {
   insist(hash_count(h) == 0);
 }
 
+TEST(selection);
+
 /*
 Local Variables:
 c-basic-offset:2