diff --git a/matrixmania/ requirements.txt b/ requirements.txt similarity index 100% rename from matrixmania/ requirements.txt rename to requirements.txt diff --git a/tests/test_matmul.py b/tests/test_matmul.py new file mode 100644 index 0000000..a56903d --- /dev/null +++ b/tests/test_matmul.py @@ -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}") + + diff --git a/tests/test_rot.py b/tests/test_rot.py new file mode 100644 index 0000000..5c9b55d --- /dev/null +++ b/tests/test_rot.py @@ -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}") + +