diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-08-27 15:52:04 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-08-27 17:33:59 +0200 |
commit | 86287e6a4fa07d03aa906965a182425320e445ce (patch) | |
tree | 765bae56e5f693af2c27344d516dcd8c119b2f26 /monkey | |
parent | 2afe078b3190dde19fa689a864191fb756bff46d (diff) |
Replace prolog.engine.run with ask_all
Creating and destroying the pengine should be handled somewhere else.
This commit also removes query functionality from prolog.engine.create.
Diffstat (limited to 'monkey')
-rwxr-xr-x | monkey/monkey.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/monkey/monkey.py b/monkey/monkey.py index 02048de..0939448 100755 --- a/monkey/monkey.py +++ b/monkey/monkey.py @@ -10,12 +10,14 @@ from .util import damerau_levenshtein, PQueue # Check whether all tests for problem [name] succeed. def test(name, code): - try: - reply, output = prolog.engine.create( - code=code, query='run_tests({})'.format(name)) - return reply.get('event') == 'success' - except Exception as ex: - return False + return False + # XXX currently broken + #try: + # reply, output = prolog.engine.create( + # code=code, query='run_tests({})'.format(name)) + # return reply.get('event') == 'success' + #except Exception as ex: + # return False # Starting from [code], find a sequence of edits that transforms it into a # correct predicate for [name]. Append [aux_code] when testing (available facts |