diff options
Diffstat (limited to 'test/parser_test.c')
-rw-r--r-- | test/parser_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parser_test.c b/test/parser_test.c index d534509..5d615ec 100644 --- a/test/parser_test.c +++ b/test/parser_test.c @@ -126,8 +126,8 @@ test_parse_variable_definition(const MunitParameter params[], void *user_data_or ast_node_t *ast_literal = ast_return->data.return_stmt.argument; - assert_int(AST_IDENTIFIER, ==, ast_literal->kind); - assert_string_view_equal("variable", ast_literal->data.identifier.name); + assert_int(AST_VARIABLE, ==, ast_literal->kind); + assert_string_view_equal("variable", ast_literal->data.variable.identifier->name); ast_node_destroy(ast_function); scope_destroy(scope); |