chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/ tests now use Automake's test infrastructure, and are split into
[disorder]
/
lib
/
t-selection.c
diff --git
a/lib/t-selection.c
b/lib/t-selection.c
index 975f9305c8b765992bd7f239de0c3debbe58a27c..0992efe7083ddda2777a67702e99471bf37ab10b 100644
(file)
--- a/
lib/t-selection.c
+++ b/
lib/t-selection.c
@@
-19,9
+19,9
@@
*/
#include "test.h"
*/
#include "test.h"
-void test_selection(void) {
+
static
void test_selection(void) {
hash *h;
hash *h;
- fprintf(stderr, "test_selection\n");
+
insist((h = selection_new()) != 0);
selection_set(h, "one", 1);
selection_set(h, "two", 1);
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);
}
insist(hash_count(h) == 0);
}
+TEST(selection);
+
/*
Local Variables:
c-basic-offset:2
/*
Local Variables:
c-basic-offset:2