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

Method test_str

linear_algebra/src/test_linear_algebra.py:34–39  ·  view source on GitHub ↗

test for method toString()

(self)

Source from the content-addressed store, hash-verified

32 _ = Vector()
33
34 def test_str(self) -> None:
35 """
36 test for method toString()
37 """
38 x = Vector([0, 0, 0, 0, 0, 1])
39 assert str(x) == "(0,0,0,0,0,1)"
40
41 def test_size(self) -> None:
42 """

Callers

nothing calls this directly

Calls 1

VectorClass · 0.85

Tested by

no test coverage detected