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/lists/max_2/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'prolog/problems/lists/max_2') diff --git a/prolog/problems/lists/max_2/common.py b/prolog/problems/lists/max_2/common.py index d055ab2..1f8769a 100644 --- a/prolog/problems/lists/max_2/common.py +++ b/prolog/problems/lists/max_2/common.py @@ -40,9 +40,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