summaryrefslogtreecommitdiff
path: root/prolog/problems/sets/union_3
diff options
context:
space:
mode:
authorAleksander Sadikov <aleksander.sadikov@fri.uni-lj.si>2015-12-14 15:24:48 +0100
committerAleksander Sadikov <aleksander.sadikov@fri.uni-lj.si>2015-12-14 15:25:36 +0100
commit79f4196a6b86c6090ab0fb915d05bebc3a627783 (patch)
treea07a40daa67a77c55ccf43d797fca6369adba06c /prolog/problems/sets/union_3
parent384d3c501a38b489312496b0bf9522bdf29053d8 (diff)
Add tests for Prolog.{sorting,sets,license_plates}
Diffstat (limited to 'prolog/problems/sets/union_3')
-rw-r--r--prolog/problems/sets/union_3/common.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/prolog/problems/sets/union_3/common.py b/prolog/problems/sets/union_3/common.py
index 506913a..774c8cf 100644
--- a/prolog/problems/sets/union_3/common.py
+++ b/prolog/problems/sets/union_3/common.py
@@ -45,9 +45,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: