diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-05-07 11:17:37 +0200 |
---|---|---|
committer | Aleš Smodiš <aless@guru.si> | 2015-08-11 14:26:03 +0200 |
commit | b6a2938043d1ad4d7587db361fcefea4d4d14ee1 (patch) | |
tree | 483c1d6f4fa94305318dca43d47e1c3804a6887c /monkey | |
parent | 368bb943b548e9b3f338b4a73379608221388bf8 (diff) |
Merge prolog.engine.create{,_and_ask} functions
Diffstat (limited to 'monkey')
-rwxr-xr-x | monkey/monkey.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/monkey/monkey.py b/monkey/monkey.py index f64a142..61ff573 100755 --- a/monkey/monkey.py +++ b/monkey/monkey.py @@ -11,8 +11,9 @@ from .util import PQueue # Check whether all tests for problem [name] succeed. def test(name, code): try: - reply = prolog.engine.create_and_ask( - code=code, query='run_tests({})'.format(name)) + reply = prolog.engine.create( + code=code, + query='run_tests({})'.format(name)) return reply.get('event') == 'success' except Exception as ex: return False |