MCPcopy Index your code
hub / github.com/subbarayudu-j/TheAlgorithms-Python / test_zeroVector

Method test_zeroVector

linear_algebra_python/src/tests.py:72–76  ·  view source on GitHub ↗

test for the global function zeroVector(...)

(self)

Source from the content-addressed store, hash-verified

70 self.assertEqual(str(x*3.0),"(3.0,6.0,9.0)")
71 self.assertEqual((a*b),0)
72 def test_zeroVector(self):
73 """
74 test for the global function zeroVector(...)
75 """
76 self.assertTrue(str(zeroVector(10)).count("0") == 10)
77 def test_unitBasisVector(self):
78 """
79 test for the global function unitBasisVector(...)

Callers

nothing calls this directly

Calls 2

zeroVectorFunction · 0.85
countMethod · 0.80

Tested by

no test coverage detected