diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-03 18:25:25 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-03 18:25:25 +0200 |
commit | 20d9c7e226ec7e7931a209cde597fbe56b3b8e64 (patch) | |
tree | 98a5be20699dca410cf5b8da834a1b42874b7585 /prolog/problems | |
parent | cb6109117d7ab4da0a8b1b996435e313787a7cde (diff) |
Pass the session object to test and hint functions
Diffstat (limited to 'prolog/problems')
-rw-r--r-- | prolog/problems/family_relations/sister_2/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prolog/problems/family_relations/sister_2/common.py b/prolog/problems/family_relations/sister_2/common.py index 9be9e6d..96ff47d 100644 --- a/prolog/problems/family_relations/sister_2/common.py +++ b/prolog/problems/family_relations/sister_2/common.py @@ -17,7 +17,7 @@ sister(X, Y) :- import prolog.engine import server.problems -def test(program): +def test(session, program): # Test queries and expected answers (values of X). queries = [ ('sister(melanie, X)', set(['andrew'])), @@ -46,7 +46,7 @@ def test(program): return n_correct, len(queries) -def hint(program): +def hint(session, program): if '\=' not in program and '\==' not in program: return [{'id': 'x_y_must_be_different'}] return None |