summaryrefslogtreecommitdiff
path: root/ccan/strgrp/test/api_test_print.c
diff options
context:
space:
mode:
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();
+}