summaryrefslogtreecommitdiff
path: root/ccan/strgrp/test/api_iterate_no_groups.c
blob: a7f692b42ddeb154e6d234ec24168e081196ca72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();
}