diff options
author | c | 2024-02-08 19:41:27 -0500 |
---|---|---|
committer | c | 2024-02-08 19:41:27 -0500 |
commit | 78bdd279d90ace6e53a853a898f4819327e82743 (patch) | |
tree | 0c5cf6eba0af38c297ac643bd120376af6feb23e /test | |
parent | 0085a59bbb0a47b3bb920f4be72a127788e7139c (diff) |
Fixed broken test.
Calls and their arguments are now parsed correctly.
Diffstat (limited to 'test')
-rw-r--r-- | test/parser.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/parser.c b/test/parser.c index 3bceab1..503244f 100644 --- a/test/parser.c +++ b/test/parser.c @@ -716,7 +716,7 @@ void cargumented_call_of_call() { char* target1 = tree1call->data.call.target = ecalloc(2, sizeof(char)); strcpy(target1, "x"); tree1call->data.call.arg = NULL; - tree0call->data.carg.nxt = NULL; + tree0carg->data.carg.nxt = NULL; tree->data.block.nxt = NULL; pp = pp_init(src); @@ -730,9 +730,6 @@ void cargumented_call_of_call() { ASSERT(tree_cmp(parser->tree, tree) == 1); - tree_print(tree, 0); - tree_print(parser->tree, 0); - token_destroy(lexer->tokenl); lexer_destroy(lexer); free(pp->psrc); |