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

Method test_changeComponent_matrix

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

Source from the content-addressed store, hash-verified

127 self.assertEqual("|2,4,6|\n|8,10,12|\n|14,16,18|\n", (A * 2).__str__())
128
129 def test_changeComponent_matrix(self):
130 A = Matrix([[1, 2, 3], [2, 4, 5], [6, 7, 8]], 3, 3)
131 A.changeComponent(0, 2, 5)
132 self.assertEqual("|1,2,5|\n|2,4,5|\n|6,7,8|\n", A.__str__())
133
134 def test_component_matrix(self):
135 A = Matrix([[1, 2, 3], [2, 4, 5], [6, 7, 8]], 3, 3)

Callers

nothing calls this directly

Calls 3

changeComponentMethod · 0.95
__str__Method · 0.95
MatrixClass · 0.85

Tested by

no test coverage detected