diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-02-09 20:38:38 +0100 |
---|---|---|
committer | Aleš Smodiš <aless@guru.si> | 2015-08-11 14:26:02 +0200 |
commit | 12c1e264dbb8ec979c17da362ff120a3fa87039c (patch) | |
tree | 7f83c9dd96397ad7b505cc22f6d7ba79ed8580da /monkey/monkey.py | |
parent | 089dc41954067ec351ae398214091aff269c8d67 (diff) |
Ignore edits after the first correct version
Diffstat (limited to 'monkey/monkey.py')
-rwxr-xr-x | monkey/monkey.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/monkey/monkey.py b/monkey/monkey.py index 0e622bf..0a934bc 100755 --- a/monkey/monkey.py +++ b/monkey/monkey.py @@ -109,6 +109,7 @@ def fix(name, code, edits, program_lines, aux_code='', timeout=30, debug=False): new_steps = [] i = 0 while i < len(steps): + # Check for successive edits on the same line. if i < len(steps)-1 and \ steps[i][0] in ('add_rule', 'add_subgoal', 'change_line') and \ steps[i+1][0] == 'change_line' and \ |