summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-07 11:55:12 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-07 11:55:12 +0200
commit169c995732f3840aae6750479b49a4d0bcd4b198 (patch)
treea3cfd6c772b189b3cc1e92b4faf71193af43dac7
parentdda17e976021f71bfec770b6ec2be8cb899aacc8 (diff)
Prolog: fix test cases for sorting/pivoting_4
-rw-r--r--prolog/problems/sorting/pivoting_4/common.py12
1 files 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):