From d7b690ec8a893a1a4b4515886cd93426ba85123d Mon Sep 17 00:00:00 2001 From: Filleo Date: Wed, 15 May 2024 16:26:40 +0200 Subject: [PATCH] solved error in test --- src/ast/ast.c | 1 - tests/ast/test_ast.py | 17 +++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/ast/ast.c b/src/ast/ast.c index 742bb73..e503e1e 100644 --- a/src/ast/ast.c +++ b/src/ast/ast.c @@ -33,7 +33,6 @@ void AST_init() { DEBUG("initializing global syntax tree..."); INFO("filling lookup table..."); - lookup_table[AST_Stmt] = "stmt"; lookup_table[AST_Module] = "module"; lookup_table[AST_Expr] = "expr"; diff --git a/tests/ast/test_ast.py b/tests/ast/test_ast.py index 91d637a..28407f9 100644 --- a/tests/ast/test_ast.py +++ b/tests/ast/test_ast.py @@ -60,14 +60,27 @@ def run_check_print_node(): 29 < 30 cast 31 as -32 value +32 funcall 33 value 34 typedef 35 box 36 fun 37 value 38 list -39 storage +39 expr list +40 arg list +41 param list +42 stmt list +43 ident list +44 value +45 type +46 value +47 value +48 value +49 - +50 parameter +51 value +52 parameter-declaration """ == p.stdout