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

Method test_unitBasisVector

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

test for the global function unitBasisVector(...)

(self)

Source from the content-addressed store, hash-verified

86 self.assertTrue(zeroVector(10).__str__().count("0") == 10)
87
88 def test_unitBasisVector(self):
89 """
90 test for the global function unitBasisVector(...)
91 """
92 self.assertEqual(unitBasisVector(3, 1).__str__(), "(0,1,0)")
93
94 def test_axpy(self):
95 """

Callers

nothing calls this directly

Calls 2

unitBasisVectorFunction · 0.85
__str__Method · 0.45

Tested by

no test coverage detected