summaryrefslogtreecommitdiff
path: root/monkey/test.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-02-25 16:47:17 +0100
committerAleš Smodiš <aless@guru.si>2015-08-11 14:26:02 +0200
commit2d13584d1599ec75bfd6e9e499379e7fc4987cbb (patch)
tree96893f01b0be42230e04cefe06e96a32acbc1a37 /monkey/test.py
parent876791d8fae58b9eca9d6c8e8ccaa5693e938d87 (diff)
monkey.fix.step: apply all edits in line order
For instance, don't add a new rule at line 1 after changing line 3 - only the ordered sequence of edits will be checked.
Diffstat (limited to 'monkey/test.py')
-rwxr-xr-xmonkey/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/monkey/test.py b/monkey/test.py
index b75858a..2b01b95 100755
--- a/monkey/test.py
+++ b/monkey/test.py
@@ -170,5 +170,5 @@ else:
# Try finding a fix.
print(colored('Analyzing program…', 'yellow'))
- solution, steps, fix_time, n_tested = fix(problem.name, code, edits, aux_code=aux_code, debug=True)
+ solution, steps, fix_time, n_tested = fix(problem.name, code, edits, lines, aux_code=aux_code, debug=True)
print_hint(solution, steps, fix_time, n_tested)