From 8d7d287e088068c661a241f88cf70412b5121a58 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 27 Nov 2015 15:03:14 +0100 Subject: Leave query modification in tests to Prolog engine --- prolog/problems/family_relations/brother_2/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'prolog/problems/family_relations/brother_2') diff --git a/prolog/problems/family_relations/brother_2/common.py b/prolog/problems/family_relations/brother_2/common.py index 2b45b53..4d01c0b 100644 --- a/prolog/problems/family_relations/brother_2/common.py +++ b/prolog/problems/family_relations/brother_2/common.py @@ -50,9 +50,7 @@ def test(program, solved_problems): if engine_id is not None and 'error' not in map(itemgetter(0), output): # Engine successfully created, and no syntax error in program. for query, answers in test_cases: - # Limit inferences for each solution to curb unbounded recursion. - limited = 'call_with_inference_limit(({}), 100000, _)'.format(query) - if prolog.engine.check_answers(engine_id, query=limited, answers=answers, timeout=1.0): + if prolog.engine.check_answers(engine_id, query=query, answers=answers, timeout=1.0): n_correct += 1 finally: if engine_id: -- cgit v1.2.1