some changes

This commit is contained in:
marcelbls
2025-11-06 16:56:00 +01:00
parent 7973718285
commit 3a027799d1
5 changed files with 23 additions and 7 deletions
+3 -1
View File
@@ -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]]
+9
View File
@@ -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]]