summaryrefslogtreecommitdiff
path: root/monkey/test.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-09-27 16:14:00 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-09-27 16:14:00 +0200
commit28116fd8278bb3b8832f4f5b22c68bd7978c8efd (patch)
tree48c134e70d3e1d3502e1465c92ed80ba7a3315bb /monkey/test.py
parentb88aac8b26de977f17e27645fd3d0412a6420f53 (diff)
Incorporate some tweaks to the monkey methods
Diffstat (limited to 'monkey/test.py')
-rwxr-xr-xmonkey/test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/monkey/test.py b/monkey/test.py
index 9267782..b88942b 100755
--- a/monkey/test.py
+++ b/monkey/test.py
@@ -145,8 +145,9 @@ elif sys.argv[2] == 'info':
# Print all observed edits and their costs.
elif sys.argv[3] == 'edits':
for (path, before, after), (cost, uids) 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(' {:.4f}\t{}: {} → {}'.format(cost, '▹'.join(path),
+ stringify(before) if before else 'ε',
+ stringify(after) if after else 'ε'))
# Print all student queries and their counts.
elif sys.argv[3] == 'queries':