diff options
| author | Federico Angelilli <code@fedang.net> | 2024-06-07 17:11:48 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-06-07 17:11:48 +0200 |
| commit | 33801aad0f98f2fcbb45d552cf2a9c85bd166d7b (patch) | |
| tree | f467c4a8cee2b7a8056bb74e1debb074025ada74 /test | |
| parent | b2398c1735f0482e83b811fed49550ea3d9d32a2 (diff) | |
Refactor sexp to handle pairs
Diffstat (limited to 'test')
| -rw-r--r-- | test/log.c | 2 | ||||
| -rw-r--r-- | test/sexp.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -93,7 +93,7 @@ int main() "p:window", NULL, "f:scale", 1.23, "b:hidden", true, - "c:pairs", ANY_LOG_FORMATTER(pairs_format), pairs, + "g:pairs", ANY_LOG_FORMATTER(pairs_format), pairs, "appname", "nice app"); // Test any_log_format diff --git a/test/sexp.c b/test/sexp.c index 8070156..3adf3ab 100644 --- a/test/sexp.c +++ b/test/sexp.c @@ -30,6 +30,10 @@ int main() sexp = any_sexp_read(&reader); } + any_sexp_t pair = any_sexp_cons(any_sexp_number(1), any_sexp_number(2)); + any_sexp_print(pair); + any_sexp_free_list(pair); + //printf("%zu\n", sizeof(any_sexp_t)); return 0; |
