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