summaryrefslogtreecommitdiff
path: root/prolog/problems
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-08-09 14:46:51 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-08-09 14:46:51 +0200
commita609aa835e543e53647d55e1992f8c7654f68a30 (patch)
treeccf20eafb7f644ece24fbade298d6351d12c1fdd /prolog/problems
parent3058111ccb4ee97f061a8407335c29fcaa386b18 (diff)
Prolog: add a couple of test cases for rev/2
Diffstat (limited to 'prolog/problems')
-rw-r--r--prolog/problems/lists_advanced/rev_2/common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/prolog/problems/lists_advanced/rev_2/common.py b/prolog/problems/lists_advanced/rev_2/common.py
index b673660..f79ddca 100644
--- a/prolog/problems/lists_advanced/rev_2/common.py
+++ b/prolog/problems/lists_advanced/rev_2/common.py
@@ -39,6 +39,10 @@ hint_type = {
test_cases = [
('rev([], X)',
[{'X': '[]'}]),
+ ('rev(X, [])',
+ [{'X': '[]'}]),
+ ('rev([42], X)',
+ [{'X': '[42]'}]),
('rev([s, k, c, d, d], X)',
[{'X': '[d, d, c, k, s]'}]),
('rev(X, [s, k, c, d, d])',