summaryrefslogtreecommitdiff
path: root/monkey/test.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-02-04 15:50:59 +0100
committerAleš Smodiš <aless@guru.si>2015-08-11 14:26:01 +0200
commit3c1153e608ad5da8d06f7c5a2e260dea90f91495 (patch)
tree44ac58b90a55ddb8d378ca25d91f0fbdef9f2777 /monkey/test.py
parentae0890f51a2e312f8ce159d34c646af91e762ecf (diff)
Initial error marking support
Some cleanups in monkey.monkey. Need better namespacing. Basic postprocessing (merge edits to same line).
Diffstat (limited to 'monkey/test.py')
-rwxr-xr-xmonkey/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/monkey/test.py b/monkey/test.py
index 01caf08..4bf5db9 100755
--- a/monkey/test.py
+++ b/monkey/test.py
@@ -52,8 +52,8 @@ def print_hint(solution, steps, fix_time, n_tested):
if solution:
print(colored('Hint found! Tested {} programs in {:.1f} s.'.format(n_tested, fix_time), 'green'))
print(colored(' Edits', 'blue'))
- for line, (before, after) in steps:
- print(' {}:\t{} → {}'.format(line, stringify(before), stringify(after)))
+ for step_type, line, (before, after) in steps:
+ print(' {}: {} {} → {}'.format(line, step_type, stringify(before), stringify(after)))
print(colored(' Final version', 'blue'))
print(indent(compose(*decompose(solution)), 2))
else: