MCPcopy Index your code
hub / github.com/numpy/numpy / testConstructor3

Method testConstructor3

tools/swig/test/testArray.py:39–44  ·  view source on GitHub ↗

Test Array1 copy constructor

(self)

Source from the content-addressed store, hash-verified

37 self.assertTrue(isinstance(aa, Array.Array1))
38
39 def testConstructor3(self):
40 "Test Array1 copy constructor"
41 for i in range(self.array1.length()):
42 self.array1[i] = i
43 arrayCopy = Array.Array1(self.array1)
44 self.assertTrue(arrayCopy == self.array1)
45
46 def testConstructorBad(self):
47 "Test Array1 length constructor, negative"

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected