From dda17e976021f71bfec770b6ec2be8cb899aacc8 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 4 Apr 2016 18:54:46 +0200 Subject: Prolog: add a test case for conc/3 --- prolog/problems/lists/conc_3/common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'prolog/problems') 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([], [], [])', -- cgit v1.2.1