Spaces:
Sleeping
Sleeping
edd comments in unit tests
Browse files
tests/unit/test_action.py
CHANGED
@@ -17,15 +17,15 @@ def test_position_rotation_shape():
|
|
17 |
@pytest.mark.parametrize(
|
18 |
"axis, input, expected",
|
19 |
[
|
20 |
-
(0, (1, 1, 0, 0), (1, 1, 0, 0)),
|
21 |
-
(0, (1, 0, 1, 0), (1, 0, 0, -1)),
|
22 |
-
(0, (1, 0, 0, 1), (1, 0, 1, 0)),
|
23 |
-
(1, (1, 1, 0, 0), (1, 0, 0, 1)),
|
24 |
-
(1, (1, 0, 1, 0), (1, 0, 1, 0)),
|
25 |
-
(1, (1, 0, 0, 1), (1, -1, 0, 0)),
|
26 |
-
(2, (1, 1, 0, 0), (1, 0, -1, 0)),
|
27 |
-
(2, (1, 0, 1, 0), (1, 1, 0, 0)),
|
28 |
-
(2, (1, 0, 0, 1), (1, 0, 0, 1)),
|
29 |
],
|
30 |
)
|
31 |
def test_position_rotation(axis: int, input: Iterable[int], expected: Iterable[int]):
|
|
|
17 |
@pytest.mark.parametrize(
|
18 |
"axis, input, expected",
|
19 |
[
|
20 |
+
(0, (1, 1, 0, 0), (1, 1, 0, 0)), # X -> X
|
21 |
+
(0, (1, 0, 1, 0), (1, 0, 0, -1)), # Y -> -Z
|
22 |
+
(0, (1, 0, 0, 1), (1, 0, 1, 0)), # Z -> Y
|
23 |
+
(1, (1, 1, 0, 0), (1, 0, 0, 1)), # X -> Z
|
24 |
+
(1, (1, 0, 1, 0), (1, 0, 1, 0)), # Y -> Y
|
25 |
+
(1, (1, 0, 0, 1), (1, -1, 0, 0)), # Z -> -X
|
26 |
+
(2, (1, 1, 0, 0), (1, 0, -1, 0)), # X -> -Y
|
27 |
+
(2, (1, 0, 1, 0), (1, 1, 0, 0)), # Y -> X
|
28 |
+
(2, (1, 0, 0, 1), (1, 0, 0, 1)), # Z -> Z
|
29 |
],
|
30 |
)
|
31 |
def test_position_rotation(axis: int, input: Iterable[int], expected: Iterable[int]):
|