1 #include <ccan/intmap/intmap.h>
2 #include <ccan/intmap/intmap.c>
3 #include <ccan/tap/tap.h>
7 UINTMAP(const char *) map;
10 /* This is how many tests you plan to run */
14 assert(uintmap_add(&map, 0x103, "103"));
15 assert(uintmap_add(&map, 0x10b, "10b"));
17 uintmap_first(&map, &idx);
20 ok1(strcmp(uintmap_after(&map, &idx), "103") == 0);
24 /* This exits depending on whether all tests passed */