summaryrefslogtreecommitdiff
path: root/ccan/tal/test/run-resizez.c
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-07-09 22:28:25 -0700
committerWilliam Casarin <jb55@jb55.com>2018-07-09 22:31:48 -0700
commit9593fc545950782ed75f12f53238b07885559b2b (patch)
tree9c7c2f7cbb427c54e9184cb61eedce737a6cbc6f /ccan/tal/test/run-resizez.c
parentbd8c223756d2f912526ecef53bae0cc8e0c63442 (diff)
remove ccan for now
Diffstat (limited to 'ccan/tal/test/run-resizez.c')
-rw-r--r--ccan/tal/test/run-resizez.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/ccan/tal/test/run-resizez.c b/ccan/tal/test/run-resizez.c
deleted file mode 100644
index ddf6682..0000000
--- a/ccan/tal/test/run-resizez.c
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <ccan/tal/tal.h>
-#include <ccan/tal/tal.c>
-#include <ccan/tap/tap.h>
-
-int main(void)
-{
- char *parent, *c;
- int i;
-
- plan_tests(1 + 3 * 100 + 98);
-
- parent = tal(NULL, char);
- ok1(parent);
-
- for (i = 0; i < 100; i++) {
- c = tal_arr(parent, char, 1);
- ok1(tal_resizez(&c, i));
- ok1(tal_count(c) == i);
- ok1(tal_parent(c) == parent);
- if (i > 1)
- ok1(c[i-1] == '\0');
- }
- tal_free(parent);
-
- tal_cleanup();
- return exit_status();
-}