summaryrefslogtreecommitdiff
path: root/ccan/strgrp/test/api_iterate_no_groups.c
diff options
context:
space:
mode:
Diffstat (limited to 'ccan/strgrp/test/api_iterate_no_groups.c')
-rw-r--r--ccan/strgrp/test/api_iterate_no_groups.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/ccan/strgrp/test/api_iterate_no_groups.c b/ccan/strgrp/test/api_iterate_no_groups.c
new file mode 100644
index 00000000..a7f692b4
--- /dev/null
+++ b/ccan/strgrp/test/api_iterate_no_groups.c
@@ -0,0 +1,14 @@
+#include "../test/helpers.h"
+
+int main(void) {
+ struct strgrp *ctx;
+ struct strgrp_iter *iter;
+
+ plan_tests(1);
+ create(ctx, DEFAULT_SIMILARITY);
+ iter = strgrp_iter_new(ctx);
+ ok1(!strgrp_iter_next(iter));
+ strgrp_iter_free(iter);
+ strgrp_free(ctx);
+ return exit_status();
+}