summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-04 18:54:46 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-04 18:54:46 +0200
commitdda17e976021f71bfec770b6ec2be8cb899aacc8 (patch)
treeb9ee05d69b0b90ac2b3ef3ca8fa264d49f07ce68
parent732b8f42029eced5e53debbff367131c2ea366ee (diff)
Prolog: add a test case for conc/3
-rw-r--r--prolog/problems/lists/conc_3/common.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/prolog/problems/lists/conc_3/common.py b/prolog/problems/lists/conc_3/common.py
index 108a334..70163b9 100644
--- a/prolog/problems/lists/conc_3/common.py
+++ b/prolog/problems/lists/conc_3/common.py
@@ -1,11 +1,9 @@
-# coding=utf-8
-
from operator import itemgetter
+import socket
+
import prolog.engine
import prolog.util
-import socket
from server.hints import Hint, HintPopup
-import server.problems
id = 104
number = 5
@@ -38,6 +36,8 @@ test_cases = [
[{'X': '[j, b, l]'}]),
('conc([a, r, u, e], [c, f], X)',
[{'X': '[a, r, u, e, c, f]'}]),
+ ('conc([a, r, u], [c, f], X)',
+ [{'X': '[a, r, u, c, f]'}]),
('conc(X, [], [g, r])',
[{'X': '[g, r]'}]),
('conc([], [], [])',