Skip to content

Commit

Permalink
Skip execution tests & change examples
Browse files Browse the repository at this point in the history
  • Loading branch information
WoWaster committed May 25, 2024
1 parent 6b86171 commit 5707dd6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/autotests/test_task12.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def test_well_typed(self, program: str) -> None:
def test_ill_typed(self, program: str) -> None:
assert not typing_program(program)

@pytest.mark.skip("Has errors")
@pytest.mark.parametrize("grammar", GRAMMARS_DIFFERENT)
def test_exec_simple(self, graph: MultiDiGraph, grammar: CFG):
start_nodes, final_nodes = generate_rnd_start_and_final(graph)
Expand Down
15 changes: 12 additions & 3 deletions tests/autotests/to_program_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,13 @@ def __str__(self):
let q = ("s" . "f") ^ [1..]
let g = q & p""",
"""
let p = "a" . "b" | "c"
let q = ("s" . "f") ^ [1..]
let g = [q, p]
let a = ("a" . b) | "a" ^ [0]
let b = a . "b"
""",
"""
let q = "a" . p
let p = "b" . r
let r = ("c" . r) | "c" ^ [0]
""",
"""
let p = (1,"a",2)
Expand Down Expand Up @@ -208,6 +212,11 @@ def __str__(self):
let g = [q, p]
""",
"""
let p = "a" . "b" | "c"
let q = ("s" . "f") ^ [1..]
let g = [q, p]
""",
"""
let p = "a" . p . "b" | "c"
let g is graph
let r1 =
Expand Down

0 comments on commit 5707dd6

Please sign in to comment.