MatrixMania/tests/test_transpose.py
2025-11-20 14:39:41 +01:00

10 lines
199 B
Python

from matrixmania.compute import transpose
def test_transpose():
matrix = [
[1, 2, 3],
[4, 5, 6]
]
matrix = transpose(matrix)
assert matrix == [[1, 4],[2, 5],[3, 6]]