1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "../test/helpers.h" static void data_cb(void *data) { ok1(streq("1", (char *)data)); } int main(void) { struct strgrp *ctx; plan_tests(1); create(ctx, DEFAULT_SIMILARITY); strgrp_add(ctx, "a", (void *)"1"); strgrp_free_cb(ctx, &data_cb); return exit_status(); }