Commit a3db829f authored by di68kap's avatar di68kap

- Fehler in Grammatik-Tests korrigiert

parent 658fe908
[match:group]
M1: "(2 + x)"
M2: "(3)"
M3: "(-4x / 2)"
[fail:group]
F1: "22"
......@@ -17,6 +18,7 @@ M6: "-(a * b)"
M7: "2x"
M8: "-2x"
M9: "-(2 + 4)x(3 + 4)"
M10: "2(-x)"
[fail:factor]
F1: "x4"
......@@ -46,6 +48,7 @@ M4: "a - 5 + b"
M5: "-5 - +4x"
M6: "5 - 4 + 3"
M7: "5 - (4 + 3)"
M8: "5 - 4 / 2 + 3x - 2"
[fail:expression]
F1: "-5 - - 4x"
......
......@@ -8,7 +8,7 @@ import sys
LOGGING = False
sys.path.extend(['../../', '../', './'])
sys.path.extend(['../../', '..', '.'])
scriptpath = os.path.dirname(__file__)
......@@ -24,7 +24,7 @@ except ModuleNotFoundError:
CONFIG_PRESET['ast_serialization'] = "S-expression"
CONFIG_PRESET['test_parallelization'] = True
CONFIG_PRESET['test_parallelization'] = False
def recompile_grammar(grammar_src, force):
grammar_tests_dir = os.path.join(scriptpath, 'grammar_tests')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment