summaryrefslogtreecommitdiff
path: root/ccan/strgrp/test/api_test_print.c
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2015-08-20 15:46:31 +0930
committerRusty Russell <rusty@rustcorp.com.au>2015-09-09 04:31:39 +0930
commit7c7ad8cc84eb75d83222fb269d9c117c12c8e75c (patch)
tree0aacd9aa6abf762496fe29d2bb1b3462f3ce6ba7 /ccan/strgrp/test/api_test_print.c
parent4ad5144790a12523f8a7c24c469a34907b6942a6 (diff)
strgrp: new module
Diffstat (limited to 'ccan/strgrp/test/api_test_print.c')
-rw-r--r--ccan/strgrp/test/api_test_print.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ccan/strgrp/test/api_test_print.c b/ccan/strgrp/test/api_test_print.c
new file mode 100644
index 00000000..8635882d
--- /dev/null
+++ b/ccan/strgrp/test/api_test_print.c
@@ -0,0 +1,15 @@
+#include "../test/helpers.h"
+
+int main(void) {
+ struct strgrp *ctx;
+
+ plan_tests(1);
+ create(ctx, DEFAULT_SIMILARITY);
+ strgrp_add(ctx, "a", (void *)"1");
+ strgrp_add(ctx, "a", (void *)"2");
+ strgrp_add(ctx, "b", (void *)"3");
+ strgrp_print(ctx);
+ strgrp_free(ctx);
+ pass("No errors");
+ return exit_status();
+}