X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftal%2Ftest%2Frun-count.c;h=a621e1d8b7dd0fbe0c571998f817b15288e3556c;hb=a8722345053b7cd860499aa31fd6bb414c120cc8;hp=6a4eb4ab8ada57a9aef4d772fedf61160e6662a4;hpb=8cf5b6208cad807228a69d695e6521122d4b71da;p=ccan diff --git a/ccan/tal/test/run-count.c b/ccan/tal/test/run-count.c index 6a4eb4ab..a621e1d8 100644 --- a/ccan/tal/test/run-count.c +++ b/ccan/tal/test/run-count.c @@ -43,14 +43,18 @@ int main(void) tal_set_backend(my_alloc, my_realloc, my_free, NULL); - plan_tests(19 * 3); + plan_tests(2 + 19 * 3); + + p1 = NULL; + ok1(tal_bytelen(p1) == 0); + ok1(tal_count(p1) == 0); for (i = 0; i < 3; i++) { move = i; p1 = tal(NULL, char); ok1(p1); - ok1(tal_count(p1) == 0); + ok1(tal_count(p1) == 1); p2 = tal_arr(p1, char, 1); ok1(p2);