diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-01-12 13:14:05 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-01-12 13:14:05 +0100 |
commit | f1521c9769f9b28cf658a9255dbfc16c98870da9 (patch) | |
tree | 702bda9a5ef6210e2139633dc18c69fe995f1b92 /monkey/test.py | |
parent | 740e128bb32075279dd62c677b27c645805cb5e2 (diff) |
Get number of passed/total tests from Prolog test functions
Diffstat (limited to 'monkey/test.py')
-rwxr-xr-x | monkey/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monkey/test.py b/monkey/test.py index 1d82c33..bb49948 100755 --- a/monkey/test.py +++ b/monkey/test.py @@ -47,8 +47,8 @@ def test(code): dependencies = sorted([p[2:] for p in other_problems if p.identifier in used_predicate_identifiers]) aux_code = '\n' + solutions_for_problems('prolog', dependencies) + '\n' + facts - correct, hints = problem_module.test(code, aux_code) - return correct + n_correct, n_all, _ = problem_module.test(code, aux_code) + return n_correct, n_all traces = [s.trace for s in Solution.filter(problem_id=problem.id)] |