summaryrefslogtreecommitdiff
path: root/prolog
diff options
context:
space:
mode:
Diffstat (limited to 'prolog')
-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])',