Added Tests

This commit is contained in:
marcelbls 2025-11-06 16:14:43 +01:00
parent ecf8123f1e
commit 2a7addfcfb
3 changed files with 23 additions and 0 deletions

15
tests/test_matmul.py Normal file
View File

@ -0,0 +1,15 @@
from matrixmania import matmul
def test_matmul():
matrix_a = [[3, 4, -1, 4],
[-2, 2, 5, 1]
]
matrix_b = [[1, 3, -2],
[2, 5, 1],
[-1, 4, -4],
[2, 3, 6]
]
matrix_c = matmul(matrix_a, matrix_b)
print(f"Matrix A: {matrix_a} mal Matrix B: {matrix_b} = Matrix C: {matrix_c}")

8
tests/test_rot.py Normal file
View File

@ -0,0 +1,8 @@
from matrixmania import rot_2D
def test_rot_2D():
angle = 90
result = rot_2D(angle)
print(f"Angle:{angle} Rot-Matrix:{result}")