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

Method test_copy

linear_algebra_python/src/tests.py:89–95  ·  view source on GitHub ↗

test for the copy()-method

(self)

Source from the content-addressed store, hash-verified

87 y = Vector([1,0,1])
88 self.assertEqual(str(axpy(2,x,y)),"(3,4,7)")
89 def test_copy(self):
90 """
91 test for the copy()-method
92 """
93 x = Vector([1,0,0,0,0,0])
94 y = x.copy()
95 self.assertEqual(str(x),str(y))
96 def test_changeComponent(self):
97 """
98 test for the changeComponent(...)-method

Callers

nothing calls this directly

Calls 2

copyMethod · 0.95
VectorClass · 0.85

Tested by

no test coverage detected