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

Method test_copy

linear_algebra/src/test_linear_algebra.py:111–117  ·  view source on GitHub ↗

test for method copy()

(self)

Source from the content-addressed store, hash-verified

109 assert str(axpy(2, x, y)) == "(3,4,7)"
110
111 def test_copy(self) -> None:
112 """
113 test for method copy()
114 """
115 x = Vector([1, 0, 0, 0, 0, 0])
116 y = x.copy()
117 assert str(x) == str(y)
118
119 def test_change_component(self) -> None:
120 """

Callers

nothing calls this directly

Calls 2

copyMethod · 0.95
VectorClass · 0.85

Tested by

no test coverage detected