summaryrefslogtreecommitdiff
path: root/prolog/problems/family_relations/brother_2/common.py
diff options
context:
space:
mode:
authorAleksander Sadikov <aleksander.sadikov@fri.uni-lj.si>2015-10-02 22:27:57 +0200
committerAleksander Sadikov <aleksander.sadikov@fri.uni-lj.si>2015-10-02 22:27:57 +0200
commit6bda47fb45788f7464b7846bc58d7b90cc65240f (patch)
tree5f0665f4a2cf11b349468db58238b2d5ba911307 /prolog/problems/family_relations/brother_2/common.py
parent4e7b80974d7433f96fa1908293e5faee9d8de519 (diff)
Figures, hints and test cases added/updated for father, grandparent, brother, and sister problems.
Diffstat (limited to 'prolog/problems/family_relations/brother_2/common.py')
-rw-r--r--prolog/problems/family_relations/brother_2/common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/prolog/problems/family_relations/brother_2/common.py b/prolog/problems/family_relations/brother_2/common.py
index 327e746..3fb685f 100644
--- a/prolog/problems/family_relations/brother_2/common.py
+++ b/prolog/problems/family_relations/brother_2/common.py
@@ -34,6 +34,8 @@ test_cases = [
{'X': 'kramer'}, {'X': 'michael'}, {'X': 'william'}]),
('brother(andrew, X)',
[{'X': 'melanie'}]),
+ ('brother(X, sally)',
+ [{'X': 'jeffrey'}, {'X': 'william'}]),
]
def test(program, solved_problems):
@@ -101,4 +103,4 @@ def hint(program, solved_problems):
if engine_id:
prolog.engine.destroy(engine_id)
- return None
+ return []