Files
mercury/tests/tabling/rotate.exp
Julien Fischer 2337612c8f Fix failing tabling tests.
tests/tabling/rotate.exp:
tests/tabling/rotate2.exp:
     Conform to standard library changes.
2016-07-01 11:51:30 +10:00

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])]) =