summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2015-12-21 11:47:56 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2015-12-21 20:13:09 +0100
commit8c4047f06e7bf24358da32ca6b1ce6fc0a27e449 (patch)
treef110d8cd513986658c49ca46894086fcdf426d20
parentf0fd4f60ae71949b16286c3ed2bc3486a78e1898 (diff)
Fix printing edits in monkey.test
-rwxr-xr-xmonkey/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/monkey/test.py b/monkey/test.py
index 9eb91e1..71d8aa5 100755
--- a/monkey/test.py
+++ b/monkey/test.py
@@ -139,7 +139,7 @@ elif sys.argv[2] == 'info':
# Print all observed edits and their costs.
elif sys.argv[3] == 'edits':
- for (before, after), cost in sorted(edits.items(), key=lambda x: x[1]):
+ for (path, before, after), cost in sorted(edits.items(), key=lambda x: x[1]):
print(' {:.4f}\t{} → {}'.format(cost, stringify(before) if before else 'ε',
stringify(after) if after else 'ε'))
# Print all observed edits and their costs.