X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/3ece470d21e4fcc14337db1d631290d5e7cd4959..c68d8eba5fe27f4e9ecf4938a6f5a5636d5872d2:/lib/t-selection.c?ds=sidebyside 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