diff options
| author | William Casarin <jb55@jb55.com> | 2018-07-09 22:28:25 -0700 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2018-07-09 22:31:48 -0700 |
| commit | 9593fc545950782ed75f12f53238b07885559b2b (patch) | |
| tree | 9c7c2f7cbb427c54e9184cb61eedce737a6cbc6f /ccan/tal/test/run-expand.c | |
| parent | bd8c223756d2f912526ecef53bae0cc8e0c63442 (diff) | |
remove ccan for now
Diffstat (limited to 'ccan/tal/test/run-expand.c')
| -rw-r--r-- | ccan/tal/test/run-expand.c | 33 |
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(); -} |
