MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / test_str_matrix

Method test_str_matrix

linear_algebra/src/test_linear_algebra.py:128–133  ·  view source on GitHub ↗

test for Matrix method str()

(self)

Source from the content-addressed store, hash-verified

126 assert str(x) == "(0,1,0)"
127
128 def test_str_matrix(self) -> None:
129 """
130 test for Matrix method str()
131 """
132 a = Matrix([[1, 2, 3], [2, 4, 5], [6, 7, 8]], 3, 3)
133 assert str(a) == "|1,2,3|\n|2,4,5|\n|6,7,8|\n"
134
135 def test_minor(self) -> None:
136 """

Callers

nothing calls this directly

Calls 1

MatrixClass · 0.70

Tested by

no test coverage detected