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

Method test__sub__matrix

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

Source from the content-addressed store, hash-verified

141 self.assertEqual("|2,4,10|\n|4,8,10|\n|12,14,18|\n", (A + B).__str__())
142
143 def test__sub__matrix(self):
144 A = Matrix([[1, 2, 3], [2, 4, 5], [6, 7, 8]], 3, 3)
145 B = Matrix([[1, 2, 7], [2, 4, 5], [6, 7, 10]], 3, 3)
146 self.assertEqual("|0,0,-4|\n|0,0,0|\n|0,0,-2|\n", (A - B).__str__())
147
148 def test_squareZeroMatrix(self):
149 self.assertEqual(

Callers

nothing calls this directly

Calls 2

MatrixClass · 0.85
__str__Method · 0.45

Tested by

no test coverage detected