]> git.ozlabs.org Git - ccan/blobdiff - ccan/strset/test/run-iterate-const.c
setset: fix API to match strmap and common sense.
[ccan] / ccan / strset / test / run-iterate-const.c
index 42a1d73552b9541d19297770ad65bf9706e7b650..daa27504ef25b207643bf51b1023755b245c68c8 100644 (file)
@@ -19,11 +19,11 @@ int main(void)
        plan_tests(3);
 
        strset_init(&set);
-       ok1(strset_set(&set, "hello"));
-       ok1(strset_set(&set, "world"));
+       ok1(strset_add(&set, "hello"));
+       ok1(strset_add(&set, "world"));
        strset_iterate(&set, find_string, (const char *)"hello");
        ok1(found);
-       strset_destroy(&set);
+       strset_clear(&set);
 
        /* This exits depending on whether all tests passed */
        return exit_status();