From bb49b7add4e63f8cb10130ed860107e5eda95018 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 30 Nov 2015 15:09:07 +0100 Subject: Reformat Prolog test cases with lists --- prolog/problems/sets/union_3/common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'prolog/problems/sets') diff --git a/prolog/problems/sets/union_3/common.py b/prolog/problems/sets/union_3/common.py index 807bce6..506913a 100644 --- a/prolog/problems/sets/union_3/common.py +++ b/prolog/problems/sets/union_3/common.py @@ -24,13 +24,13 @@ union([H|T], S2, U) :- ''' test_cases = [ - ('union([], [3,2,5,1], A), msort(A, X)', + ('union([], [3, 2, 5, 1], A), msort(A, X)', [{'X': '[1, 2, 3, 5]'}]), - ('union([3,2,5,1], [], A), msort(A, X)', + ('union([3, 2, 5, 1], [], A), msort(A, X)', [{'X': '[1, 2, 3, 5]'}]), - ('union([3,2,5,1], [8,4,2,3,5,1,9], A), msort(A, X)', + ('union([3, 2, 5, 1], [8, 4, 2, 3, 5, 1, 9], A), msort(A, X)', [{'X': '[1, 2, 3, 4, 5, 8, 9]'}]), - ('union([2,3,5,1,9], [3,0,9,5,6], A), msort(A, X)', + ('union([2, 3, 5, 1, 9], [3, 0, 9, 5, 6], A), msort(A, X)', [{'X': '[0, 1, 2, 3, 5, 6, 9]'}]), ] -- cgit v1.2.1