Added Tests
This commit is contained in:
parent
ecf8123f1e
commit
2a7addfcfb
15
tests/test_matmul.py
Normal file
15
tests/test_matmul.py
Normal 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
8
tests/test_rot.py
Normal 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}")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user