From a7b2cec4719ed5b42889aafac20a25f1820ab78b Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Sun, 30 Apr 2023 02:00:39 +0200 Subject: ast: Rename variable and variable_declaration correctly Signed-off-by: Johnny Richard --- test/parser_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/parser_test.c b/test/parser_test.c index 0c54e50..d534509 100644 --- a/test/parser_test.c +++ b/test/parser_test.c @@ -118,7 +118,7 @@ test_parse_variable_definition(const MunitParameter params[], void *user_data_or ast_node_t *ast_variable = vector_at(ast_function->data.function.body, 0); assert_int(AST_VARIABLE_DECLARATION, ==, ast_variable->kind); - assert_string_view_equal("variable", ast_variable->data.variable.identifier.name); + assert_string_view_equal("variable", ast_variable->data.variable_declaration.identifier.name); ast_node_t *ast_return = vector_at(ast_function->data.function.body, 1); -- cgit v1.2.3