1 #include <ccan/strmap/strmap.h>
2 #include <ccan/strmap/strmap.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 UNNEEDED, char *member, const char *cmp)
10 if (strcmp(member, cmp) == 0)
22 ok1(strmap_add(&map, "hello", "hello"));
23 ok1(strmap_add(&map, "world", "world"));
24 strmap_iterate(&map, find_string, (const char *)"hello");
28 /* This exits depending on whether all tests passed */