MCPcopy
hub / github.com/TheAlgorithms/Python / test_zero_vector

Method test_zero_vector

linear_algebra/src/test_linear_algebra.py:91–95  ·  view source on GitHub ↗

test for global function zero_vector()

(self)

Source from the content-addressed store, hash-verified

89 assert a * b == 0
90
91 def test_zero_vector(self) -> None:
92 """
93 test for global function zero_vector()
94 """
95 assert str(zero_vector(10)).count("0") == 10
96
97 def test_unit_basis_vector(self) -> None:
98 """

Callers

nothing calls this directly

Calls 2

zero_vectorFunction · 0.85
countMethod · 0.80

Tested by

no test coverage detected