diff options
| author | Federico Angelilli <code@fedang.net> | 2024-06-09 00:31:31 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-06-09 00:31:31 +0200 |
| commit | 236cdea323d34fe731c9bc5dfd30ef832b9fd39a (patch) | |
| tree | 486cb2b836df56a99d5863a76632963805bfffcb /test | |
| parent | 5cb78753fe952534996722e1659318143bcca6ed (diff) | |
Refactor any_sexp
Diffstat (limited to 'test')
| -rw-r--r-- | test/sexp.c | 9 |
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)); |
