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

Method test_copy

linear-algebra-python/src/tests.py:102–108  ·  view source on GitHub ↗

test for the copy()-method

(self)

Source from the content-addressed store, hash-verified

100 self.assertEqual(axpy(2, x, y).__str__(), "(3,4,7)")
101
102 def test_copy(self):
103 """
104 test for the copy()-method
105 """
106 x = Vector([1, 0, 0, 0, 0, 0])
107 y = x.copy()
108 self.assertEqual(x.__str__(), y.__str__())
109
110 def test_changeComponent(self):
111 """

Callers

nothing calls this directly

Calls 3

copyMethod · 0.95
__str__Method · 0.95
VectorClass · 0.85

Tested by

no test coverage detected