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

Method test_squareZeroMatrix

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

Source from the content-addressed store, hash-verified

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(
150 "|0,0,0,0,0|\n|0,0,0,0,0|\n|0,0,0,0,0|\n|0,0,0,0,0|" + "\n|0,0,0,0,0|\n",
151 squareZeroMatrix(5).__str__(),
152 )
153
154 def test_norm_vector(self):
155 x = Vector([1, 2, 3])

Callers

nothing calls this directly

Calls 2

squareZeroMatrixFunction · 0.85
__str__Method · 0.45

Tested by

no test coverage detected