Skip to content

Commit

Permalink
last asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
agroce committed Aug 25, 2024
1 parent 4c29e9a commit b7cec6d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ def test_record_replay():
assert r == 0
with open("out1.txt", 'r') as f:
contents = f.read()
assert("FINAL MUTATION SCORE OVER 14 EXECUTED MUTANTS: 57.14%" in contents)
assert "FINAL MUTATION SCORE OVER 14 EXECUTED MUTANTS: 57.14%" in contents

with open("out2.txt", 'w') as f:
r = subprocess.call(["muttfuzz \"./toy\" toy --score --avoid_repeats --stop_on_repeat --save_results s_analysis.csv --use_saved_mutants mutants"], shell=True, stdout=f, stderr=f)
assert r == 0
with open("out2.txt", 'r') as f:
contents = f.read()
assert("FINAL MUTATION SCORE OVER 14 EXECUTED MUTANTS: 57.14%" in contents)

assert "FINAL MUTATION SCORE OVER 14 EXECUTED MUTANTS: 57.14%" in contents

0 comments on commit b7cec6d

Please sign in to comment.