X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstr_talloc%2Ftest%2Frun.c;h=4e1c3d168dcdd475994fb83b251a54c1b9662562;hp=6da48bd0bc98f2c5fceb776012e08c5c1372b8b1;hb=ab43c3d0de45ba1012b4e3ff669517f78cac6092;hpb=9965fc25fcc92dc76d1cd4cf9595dc3dc9ebc586 diff --git a/ccan/str_talloc/test/run.c b/ccan/str_talloc/test/run.c index 6da48bd0..4e1c3d16 100644 --- a/ccan/str_talloc/test/run.c +++ b/ccan/str_talloc/test/run.c @@ -1,15 +1,20 @@ -#include "str_talloc/str_talloc.h" +#include #include #include -#include "str_talloc/str_talloc.c" -#include "tap/tap.h" +#include +#include +#include /* FIXME: ccanize */ #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) +static char *substrings[] = { "far", "bar", "baz", "b", "ba", "z", "ar", NULL }; + int main(int argc, char *argv[]) { - unsigned int i, j, n; + unsigned int n; + char **split, *str; + void *ctx; plan_tests(19); split = strsplit(NULL, "hello world", " ", &n);