summaryrefslogtreecommitdiff
path: root/monkey
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-09 15:55:07 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-09 15:55:07 +0100
commit70de1a963610bae8d8a1ff6a09d1d17ce71837cd (patch)
tree3073275266e895f2bd1eaf702ef302cc18c44e50 /monkey
parent4da3793985d1d177a95d67e78dd2f4f5f52e2eab (diff)
Fix test function call in monkey.edits
Diffstat (limited to 'monkey')
-rw-r--r--monkey/edits.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/monkey/edits.py b/monkey/edits.py
index 82e5066..dfdf164 100644
--- a/monkey/edits.py
+++ b/monkey/edits.py
@@ -57,7 +57,8 @@ def get_edits_from_trace(trace, test, id):
if action.type == 'prolog_solve':
queries.add(action.query.rstrip(' .'))
elif action.type == 'test':
- correct = test(code)
+ passed, total = test(code)
+ correct = passed == total
submissions.add((code, correct))
if correct:
# Ignore actions after the first correct version.