diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-11-27 15:03:14 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-11-27 15:03:14 +0100 |
commit | 8d7d287e088068c661a241f88cf70412b5121a58 (patch) | |
tree | 63e2ed4b4a3dac196d407022138dd0cbf36a4a28 /prolog/problems/lists/shiftright_2 | |
parent | 98124fe770b1f400398f240f58b95c5d3ff05093 (diff) |
Leave query modification in tests to Prolog engine
Diffstat (limited to 'prolog/problems/lists/shiftright_2')
-rw-r--r-- | prolog/problems/lists/shiftright_2/common.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/prolog/problems/lists/shiftright_2/common.py b/prolog/problems/lists/shiftright_2/common.py index e9b7a7a..205daa9 100644 --- a/prolog/problems/lists/shiftright_2/common.py +++ b/prolog/problems/lists/shiftright_2/common.py @@ -37,9 +37,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: |