aboutsummaryrefslogtreecommitdiff
path: root/test/sexp.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-06-09 00:31:31 +0200
committerFederico Angelilli <code@fedang.net>2024-06-09 00:31:31 +0200
commit236cdea323d34fe731c9bc5dfd30ef832b9fd39a (patch)
tree486cb2b836df56a99d5863a76632963805bfffcb /test/sexp.c
parent5cb78753fe952534996722e1659318143bcca6ed (diff)
Refactor any_sexp
Diffstat (limited to 'test/sexp.c')
-rw-r--r--test/sexp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/sexp.c b/test/sexp.c
index 3adf3ab..45e74a4 100644
--- a/test/sexp.c
+++ b/test/sexp.c
@@ -32,7 +32,14 @@ int main()
any_sexp_t pair = any_sexp_cons(any_sexp_number(1), any_sexp_number(2));
any_sexp_print(pair);
- any_sexp_free_list(pair);
+ putchar('\n');
+
+ any_sexp_t ap = any_sexp_append(any_sexp_cons(any_sexp_number(3), ANY_SEXP_NIL),
+ any_sexp_cons(pair, ANY_SEXP_NIL));
+
+ any_sexp_print(ap);
+ putchar('\n');
+ any_sexp_free_list(ap);
//printf("%zu\n", sizeof(any_sexp_t));