diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-07-05 10:58:49 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-07-05 10:58:49 +0200 |
commit | 4dfd9056695e7a22c3e486e7be00ce1b408910fc (patch) | |
tree | ece30ae9e5edeacfdd7cc3f7a294d4e0ae810b6f /prolog/problems/dcg/paren_3 | |
parent | aeadd4c06c7e2ef5e1ae2afca6d9e135dfe7d9e8 (diff) |
Prolog: remove inference limit for several DCG problems
It is reasonable to use CLP(FD) for the paren/3, number/2, number/3 and
number_proper/2 problems; the inference limit prevented some tests from
succeeding.
Diffstat (limited to 'prolog/problems/dcg/paren_3')
-rw-r--r-- | prolog/problems/dcg/paren_3/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prolog/problems/dcg/paren_3/common.py b/prolog/problems/dcg/paren_3/common.py index 3d7131f..28ccf83 100644 --- a/prolog/problems/dcg/paren_3/common.py +++ b/prolog/problems/dcg/paren_3/common.py @@ -42,7 +42,7 @@ def test(code, aux_code): 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: - if prolog.engine.check_answers(engine_id, query=query, answers=answers, timeout=1.0): + if prolog.engine.check_answers(engine_id, query=query, answers=answers, timeout=1.0, inference_limit=None): n_correct += 1 except socket.timeout: pass |