some changes
This commit is contained in:
+3
-1
@@ -5,5 +5,7 @@ def test_rot_3D():
|
||||
result = rot_3D(angle,"x")
|
||||
print(f"Angle:{angle} Rot-Matrix:{result}")
|
||||
|
||||
assert result == [[1, 0, 0], [0, 6.123233995736766e-17, -1.0], [0, 1.0, 6.123233995736766e-17]] == [[6.123233995736766e-17, -1.0], [1.0, 6.123233995736766e-17]]
|
||||
assert result == [[1, 0, 0], [0, 6.123233995736766e-17, -1.0], [0, 1.0, 6.123233995736766e-17]]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1 +1,10 @@
|
||||
from matrixmania import transpose
|
||||
|
||||
def test_transpose():
|
||||
matrix = [
|
||||
[1, 2, 3],
|
||||
[4, 5, 6]
|
||||
]
|
||||
matrix = transpose(matrix)
|
||||
|
||||
assert matrix == [[1, 4],[2, 5],[3, 6]]
|
||||
Reference in New Issue
Block a user