]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/test/run-count.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / tal / test / run-count.c
index 33049b9f78d3e2edc9e675ed2afc7450d9b9597d..a621e1d8b7dd0fbe0c571998f817b15288e3556c 100644 (file)
@@ -46,7 +46,7 @@ int main(void)
        plan_tests(2 + 19 * 3);
 
        p1 = NULL;
-       ok1(tal_len(p1) == 0);
+       ok1(tal_bytelen(p1) == 0);
        ok1(tal_count(p1) == 0);
 
        for (i = 0; i < 3; i++) {
@@ -54,7 +54,7 @@ int main(void)
 
                p1 = tal(NULL, char);
                ok1(p1);
-               ok1(tal_count(p1) == 0);
+               ok1(tal_count(p1) == 1);
 
                p2 = tal_arr(p1, char, 1);
                ok1(p2);