MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / test_unit_basis_vector

Method test_unit_basis_vector

linear_algebra/src/test_linear_algebra.py:97–101  ·  view source on GitHub ↗

test for global function unit_basis_vector()

(self)

Source from the content-addressed store, hash-verified

95 assert str(zero_vector(10)).count("0") == 10
96
97 def test_unit_basis_vector(self) -> None:
98 """
99 test for global function unit_basis_vector()
100 """
101 assert str(unit_basis_vector(3, 1)) == "(0,1,0)"
102
103 def test_axpy(self) -> None:
104 """

Callers

nothing calls this directly

Calls 1

unit_basis_vectorFunction · 0.85

Tested by

no test coverage detected