]> git.ozlabs.org Git - ccan/blob - ccan/strgrp/test/api_test_print.c
strgrp: new module
[ccan] / ccan / strgrp / test / api_test_print.c
1 #include "../test/helpers.h"
2
3 int main(void) {
4     struct strgrp *ctx;
5
6     plan_tests(1);
7     create(ctx, DEFAULT_SIMILARITY);
8     strgrp_add(ctx, "a", (void *)"1");
9     strgrp_add(ctx, "a", (void *)"2");
10     strgrp_add(ctx, "b", (void *)"3");
11     strgrp_print(ctx);
12     strgrp_free(ctx);
13     pass("No errors");
14     return exit_status();
15 }