From e58c8bd7ea894e28a23a68b664772314720cd879 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 24 Sep 2015 18:41:22 +0200 Subject: Update monkey.test.test for new testing functions --- monkey/test.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/monkey/test.py b/monkey/test.py index 38f37a0..6736702 100755 --- a/monkey/test.py +++ b/monkey/test.py @@ -27,13 +27,11 @@ solved_problems = [p for p in CodeqUser.solved_problems(1, language) if p != (problem_group, problem)] other_solutions = server.problems.solutions_for_problems(language, solved_problems) problem_module = server.problems.load_problem(language, problem_group, problem, 'common') -problem_facts = server.problems.get_facts(language, problem_module) or '' -aux_code = other_solutions + '\n' + problem_facts # Testing function. def test(code): - n_correct, n_all = problem_module.test(code + '\n' + aux_code) - return n_correct == n_all + correct, hints = problem_module.test(code, solved_problems) + return correct traces = [s.trace for s in Solution.filter(problem_id=pid)] -- cgit v1.2.1