X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/b90f122bd10bd896f2f9b0cf5676bcd436a7d42e..49472b7d2f5a17161612ce992851732b197dda35:/lib/t-selection.c diff --git a/lib/t-selection.c b/lib/t-selection.c index 975f930..0992efe 100644 --- a/lib/t-selection.c +++ b/lib/t-selection.c @@ -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