mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 13:23:47 +00:00
tests/tabling/rotate.exp:
tests/tabling/rotate2.exp:
Conform to standard library changes.
61 lines
2.0 KiB
Plaintext
61 lines
2.0 KiB
Plaintext
rotations(3, 2, [10, 20, 30, 40, 50]) =
|
|
soln 0: [30, 40, 50, 10, 20]
|
|
soln 1: [40, 50, 10, 20, 30]
|
|
|
|
rotations(3, 2, [10, 20, 30, 40, 50]) =
|
|
soln 0: [30, 40, 50, 10, 20]
|
|
soln 1: [40, 50, 10, 20, 30]
|
|
|
|
rotations(3, 2, ["ten", "twenty", "thirty", "forty", "fifty"]) =
|
|
soln 0: ["forty", "fifty", "ten", "twenty", "thirty"]
|
|
soln 1: ["thirty", "forty", "fifty", "ten", "twenty"]
|
|
|
|
rotations(3, 2, [[1, 0], [2, 0], [3, 0], [4, 0], [5, 0]]) =
|
|
soln 0: [[3, 0], [4, 0], [5, 0], [1, 0], [2, 0]]
|
|
soln 1: [[4, 0], [5, 0], [1, 0], [2, 0], [3, 0]]
|
|
|
|
rotations(3, 2, [sol([1]), sol([1, 2]), sol([1, 2, 3]), sol([1, 2, 3, 4])]) =
|
|
soln 0: [sol([1, 2, 3]), sol([1, 2, 3, 4]), sol([1]), sol([1, 2])]
|
|
soln 1: [sol([1, 2, 3, 4]), sol([1]), sol([1, 2]), sol([1, 2, 3])]
|
|
|
|
rotations(3, 1, [10, 20, 30, 40, 50]) =
|
|
soln 0: [40, 50, 10, 20, 30]
|
|
|
|
rotations(3, 1, [10, 20, 30, 40, 50]) =
|
|
soln 0: [40, 50, 10, 20, 30]
|
|
|
|
rotations(3, 1, ["ten", "twenty", "thirty", "forty", "fifty"]) =
|
|
soln 0: ["forty", "fifty", "ten", "twenty", "thirty"]
|
|
|
|
rotations(3, 1, [[1, 0], [2, 0], [3, 0], [4, 0], [5, 0]]) =
|
|
soln 0: [[4, 0], [5, 0], [1, 0], [2, 0], [3, 0]]
|
|
|
|
rotations(3, 1, [sol([1]), sol([1, 2]), sol([1, 2, 3]), sol([1, 2, 3, 4])]) =
|
|
soln 0: [sol([1, 2, 3, 4]), sol([1]), sol([1, 2]), sol([1, 2, 3])]
|
|
|
|
rotations(2, 1, [10, 20, 30, 40, 50]) =
|
|
soln 0: [30, 40, 50, 10, 20]
|
|
|
|
rotations(2, 1, [10, 20, 30, 40, 50]) =
|
|
soln 0: [30, 40, 50, 10, 20]
|
|
|
|
rotations(2, 1, ["ten", "twenty", "thirty", "forty", "fifty"]) =
|
|
soln 0: ["thirty", "forty", "fifty", "ten", "twenty"]
|
|
|
|
rotations(2, 1, [[1, 0], [2, 0], [3, 0], [4, 0], [5, 0]]) =
|
|
soln 0: [[3, 0], [4, 0], [5, 0], [1, 0], [2, 0]]
|
|
|
|
rotations(2, 1, [sol([1]), sol([1, 2]), sol([1, 2, 3]), sol([1, 2, 3, 4])]) =
|
|
soln 0: [sol([1, 2, 3]), sol([1, 2, 3, 4]), sol([1]), sol([1, 2])]
|
|
|
|
rotations(2, 0, [10, 20, 30, 40, 50]) =
|
|
|
|
rotations(2, 0, [10, 20, 30, 40, 50]) =
|
|
|
|
rotations(2, 0, ["ten", "twenty", "thirty", "forty", "fifty"]) =
|
|
|
|
rotations(2, 0, [[1, 0], [2, 0], [3, 0], [4, 0], [5, 0]]) =
|
|
|
|
rotations(2, 0, [sol([1]), sol([1, 2]), sol([1, 2, 3]), sol([1, 2, 3, 4])]) =
|
|
|