From 236cdea323d34fe731c9bc5dfd30ef832b9fd39a Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 9 Jun 2024 00:31:31 +0200 Subject: Refactor any_sexp --- test/sexp.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test') 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)); -- cgit v1.2.3