summaryrefslogtreecommitdiff
path: root/prolog/problems/family_relations/connected_3
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/family_relations/connected_3')
-rw-r--r--prolog/problems/family_relations/connected_3/common.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/prolog/problems/family_relations/connected_3/common.py b/prolog/problems/family_relations/connected_3/common.py
index 8b462f5..2555fe9 100644
--- a/prolog/problems/family_relations/connected_3/common.py
+++ b/prolog/problems/family_relations/connected_3/common.py
@@ -41,9 +41,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: