summaryrefslogtreecommitdiff
path: root/prolog/problems/sorting/pivoting_4
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/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):