Skip to content

Commit

Permalink
Add controlled changes at program
Browse files Browse the repository at this point in the history
  • Loading branch information
KubEF authored and WoWaster committed May 6, 2024
1 parent eb191dc commit 546b831
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/autotests/test_task11.py
Expand Up @@ -79,8 +79,10 @@ def test_id(self, program: str):
tree_after, is_valid_after = prog_to_tree(program_after)
assert is_valid_after
assert nodes_count(tree_before) == nodes_count(tree_after)
# reg = re.compile("[=,]", re.X)
# if reg.search(program):
# program_bad = reg.sub("", program)
# _, is_valid_bad = prog_to_tree(program_bad)
# assert not is_valid_bad

def test_wrong(self, program: str):
reg = re.compile("[=,]", re.X)
if reg.search(program):
program_bad = reg.sub("", program)
_, is_valid_bad = prog_to_tree(program_bad)
assert not is_valid_bad

0 comments on commit 546b831

Please sign in to comment.