From 169c995732f3840aae6750479b49a4d0bcd4b198 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 7 Apr 2016 11:55:12 +0200 Subject: Prolog: fix test cases for sorting/pivoting_4 --- prolog/problems/sorting/pivoting_4/common.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/prolog/problems/sorting/pivoting_4/common.py b/prolog/problems/sorting/pivoting_4/common.py index be90792..006308f 100644 --- a/prolog/problems/sorting/pivoting_4/common.py +++ b/prolog/problems/sorting/pivoting_4/common.py @@ -38,12 +38,12 @@ hint_type = { test_cases = [ ('pivoting(5, [], A, B)', [{'A': '[]', 'B': '[]'}]), - ('pivoting(5, [6, 7, 6], A, B)', - [{'A': '[]', 'B': '[6, 7, 6]'}]), - ('pivoting(4, [2, 1, 8, 9, 3, 4, 2], A, B)', - [{'A': '[2, 1, 3, 4, 2]', 'B': '[8, 9]'}]), - ('pivoting(4, [22, 1, 0, 8, 3, 5, 7, -2], A, B)', - [{'A': '[1, 0, 3, -2]', 'B': '[22, 8, 5, 7]'}]), + ('pivoting(5, [6, 7, 6], A, B), msort(B, BS)', + [{'A': '[]', 'BS': '[6, 6, 7]'}]), + ('pivoting(4, [2, 1, 8, 9, 3, 4, 2], A, B), msort(A, AS), msort(B, BS)', + [{'AS': '[1, 2, 2, 3, 4]', 'BS': '[8, 9]'}]), + ('pivoting(4, [22, 1, 0, 8, 3, 5, 7, -2], A, B), msort(A, AS), msort(B, BS)', + [{'AS': '[-2, 0, 1, 3]', 'BS': '[5, 7, 8, 22]'}]), ] def test(code, aux_code): -- cgit v1.2.1