diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-09 15:55:07 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-09 15:55:07 +0100 |
commit | 70de1a963610bae8d8a1ff6a09d1d17ce71837cd (patch) | |
tree | 3073275266e895f2bd1eaf702ef302cc18c44e50 /monkey | |
parent | 4da3793985d1d177a95d67e78dd2f4f5f52e2eab (diff) |
Fix test function call in monkey.edits
Diffstat (limited to 'monkey')
-rw-r--r-- | monkey/edits.py | 3 |
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. |