1 #include <ccan/strset/strset.h>
2 #include <ccan/strset/strset.c>
3 #include <ccan/tap/tap.h>
5 static bool found = false;
7 /* Make sure const args work. */
8 static bool find_string(const char *str, const char *cmp)
10 if (strcmp(str, cmp) == 0)
22 ok1(strset_add(&set, "hello"));
23 ok1(strset_add(&set, "world"));
24 strset_iterate(&set, find_string, (const char *)"hello");
28 /* This exits depending on whether all tests passed */