diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-04-07 11:55:12 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-04-07 11:55:12 +0200 |
commit | 169c995732f3840aae6750479b49a4d0bcd4b198 (patch) | |
tree | a3cfd6c772b189b3cc1e92b4faf71193af43dac7 /prolog/problems/sorting/pivoting_4 | |
parent | dda17e976021f71bfec770b6ec2be8cb899aacc8 (diff) |
Prolog: fix test cases for sorting/pivoting_4
Diffstat (limited to 'prolog/problems/sorting/pivoting_4')
-rw-r--r-- | prolog/problems/sorting/pivoting_4/common.py | 12 |
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): |