import pytest from setup import Testsuite, run_tc def run_tc_parse(file: str) -> int: return run_tc(file, "--parse") class TestSyntax: @pytest.mark.parametrize("file", Testsuite.GOOD.value) def test_syntax_good(self, file: str): assert run_tc_parse(file) == 0 @pytest.mark.parametrize("file", Testsuite.SYNTAX.value) def test_syntax_error(self, file: str): assert run_tc_parse(file) == 3