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

Method test_zeroVector

linear-algebra-python/src/tests.py:82–86  ·  view source on GitHub ↗

test for the global function zeroVector(...)

(self)

Source from the content-addressed store, hash-verified

80 self.assertEqual((a * b), 0)
81
82 def test_zeroVector(self):
83 """
84 test for the global function zeroVector(...)
85 """
86 self.assertTrue(zeroVector(10).__str__().count("0") == 10)
87
88 def test_unitBasisVector(self):
89 """

Callers

nothing calls this directly

Calls 3

zeroVectorFunction · 0.85
countMethod · 0.80
__str__Method · 0.45

Tested by

no test coverage detected