mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-14 05:12:33 +00:00
Fix failing tabling tests.
tests/tabling/rotate.exp:
tests/tabling/rotate2.exp:
Conform to standard library changes.
This commit is contained in:
@@ -14,9 +14,9 @@ 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, [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4]]) =
|
||||
soln 0: [[1, 2, 3], [1, 2, 3, 4], [1], [1, 2]]
|
||||
soln 1: [[1, 2, 3, 4], [1], [1, 2], [1, 2, 3]]
|
||||
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]
|
||||
@@ -30,8 +30,8 @@ rotations(3, 1, ["ten", "twenty", "thirty", "forty", "fifty"]) =
|
||||
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, [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4]]) =
|
||||
soln 0: [[1, 2, 3, 4], [1], [1, 2], [1, 2, 3]]
|
||||
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]
|
||||
@@ -45,8 +45,8 @@ rotations(2, 1, ["ten", "twenty", "thirty", "forty", "fifty"]) =
|
||||
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, [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4]]) =
|
||||
soln 0: [[1, 2, 3], [1, 2, 3, 4], [1], [1, 2]]
|
||||
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]) =
|
||||
|
||||
@@ -56,5 +56,5 @@ rotations(2, 0, ["ten", "twenty", "thirty", "forty", "fifty"]) =
|
||||
|
||||
rotations(2, 0, [[1, 0], [2, 0], [3, 0], [4, 0], [5, 0]]) =
|
||||
|
||||
rotations(2, 0, [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4]]) =
|
||||
rotations(2, 0, [sol([1]), sol([1, 2]), sol([1, 2, 3]), sol([1, 2, 3, 4])]) =
|
||||
|
||||
|
||||
@@ -14,9 +14,9 @@ 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, [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4]]) =
|
||||
soln 0: [[1, 2, 3], [1, 2, 3, 4], [1], [1, 2]]
|
||||
soln 1: [[1, 2, 3, 4], [1], [1, 2], [1, 2, 3]]
|
||||
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]
|
||||
@@ -30,8 +30,8 @@ rotations(3, 1, ["ten", "twenty", "thirty", "forty", "fifty"]) =
|
||||
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, [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4]]) =
|
||||
soln 0: [[1, 2, 3, 4], [1], [1, 2], [1, 2, 3]]
|
||||
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]
|
||||
@@ -45,8 +45,8 @@ rotations(2, 1, ["ten", "twenty", "thirty", "forty", "fifty"]) =
|
||||
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, [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4]]) =
|
||||
soln 0: [[1, 2, 3], [1, 2, 3, 4], [1], [1, 2]]
|
||||
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]) =
|
||||
|
||||
@@ -56,5 +56,5 @@ rotations(2, 0, ["ten", "twenty", "thirty", "forty", "fifty"]) =
|
||||
|
||||
rotations(2, 0, [[1, 0], [2, 0], [3, 0], [4, 0], [5, 0]]) =
|
||||
|
||||
rotations(2, 0, [[1], [1, 2], [1, 2, 3], [1, 2, 3, 4]]) =
|
||||
rotations(2, 0, [sol([1]), sol([1, 2]), sol([1, 2, 3]), sol([1, 2, 3, 4])]) =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user