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

Method test_str_matrix

linear-algebra-python/src/tests.py:119–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 self.assertEqual(x.__str__(), "(0,1,0)")
118
119 def test_str_matrix(self):
120 A = Matrix([[1, 2, 3], [2, 4, 5], [6, 7, 8]], 3, 3)
121 self.assertEqual("|1,2,3|\n|2,4,5|\n|6,7,8|\n", A.__str__())
122
123 def test__mul__matrix(self):
124 A = Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]], 3, 3)

Callers

nothing calls this directly

Calls 2

__str__Method · 0.95
MatrixClass · 0.85

Tested by

no test coverage detected