Skip to content

Commit

Permalink
fix garbage check in python
Browse files Browse the repository at this point in the history
  • Loading branch information
agroce committed Feb 23, 2023
1 parent a9b5cd8 commit f015642
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion universalmutator/genmutants.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def cmdHandler(tmpMutantName, mutant, sourceFile, uniqueMutants):
def toGarbage(code):
newCode = ""
for c in code:
if c.isspace() or c in ["*", "/", "#", "-"]:
if c == "(":
newCode += " "
elif c.isspace() or c in ["*", "/", "#", "-"]:
newCode += c
else:
newCode += "Q"
Expand Down

0 comments on commit f015642

Please sign in to comment.