summaryrefslogtreecommitdiff
path: root/ccan/tal/test/run-expand.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-expand.c
parentbd8c223756d2f912526ecef53bae0cc8e0c63442 (diff)
remove ccan for now
Diffstat (limited to 'ccan/tal/test/run-expand.c')
-rw-r--r--ccan/tal/test/run-expand.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/ccan/tal/test/run-expand.c b/ccan/tal/test/run-expand.c
deleted file mode 100644
index 841735f..0000000
--- a/ccan/tal/test/run-expand.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include <ccan/tal/tal.h>
-#include <ccan/tal/tal.c>
-#include <ccan/tap/tap.h>
-
-int main(void)
-{
- int *a;
- const int arr[] = { 1, 2 };
-
- plan_tests(13);
-
- a = tal_arrz(NULL, int, 1);
- ok1(a);
-
- ok1(tal_expand(&a, arr, 2));
- ok1(tal_count(a) == 3);
- ok1(a[0] == 0);
- ok1(a[1] == 1);
- ok1(a[2] == 2);
-
- ok1(tal_expand(&a, take(tal_arrz(NULL, int, 1)), 1));
- ok1(tal_count(a) == 4);
- ok1(a[0] == 0);
- ok1(a[1] == 1);
- ok1(a[2] == 2);
- ok1(a[3] == 0);
- ok1(tal_first(NULL) == a && !tal_next(a) && !tal_first(a));
-
- tal_free(a);
-
- tal_cleanup();
- return exit_status();
-}