From 8c1ad089121249c1f81838ce6871f3beb86787da Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 7 Jul 2015 11:02:05 +0200 Subject: Fix monkey.test.print_hint --- monkey/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'monkey') diff --git a/monkey/test.py b/monkey/test.py index 6887a2c..6549c1b 100755 --- a/monkey/test.py +++ b/monkey/test.py @@ -58,8 +58,8 @@ def print_hint(code, solution, steps, fix_time, n_tested): for step_type, pos, a, b in steps: print(' {}: {} {} → {}'.format(pos, step_type, stringify(a), stringify(b))) print(colored(' Hints', 'blue')) - for loc, msg in fix_hints(code, steps): - print(' {}-{}: {}'.format(loc['start'], loc['end'], msg)) + for fix_type, start, end, msg in fix_hints(code, steps): + print(' {}-{}: {} (fix type: {})'.format(start, end, msg, fix_type)) print(colored(' Final version', 'blue')) print(indent(compose(annotate(solution)), 2)) else: -- cgit v1.2.1