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

Method testConstructor3

tools/swig/test/testArray.py:293–298  ·  view source on GitHub ↗

Test ArrayZ copy constructor

(self)

Source from the content-addressed store, hash-verified

291 self.assertTrue(isinstance(aa, Array.ArrayZ))
292
293 def testConstructor3(self):
294 "Test ArrayZ copy constructor"
295 for i in range(self.array3.length()):
296 self.array3[i] = complex(i, -i)
297 arrayCopy = Array.ArrayZ(self.array3)
298 self.assertTrue(arrayCopy == self.array3)
299
300 def testConstructorBad(self):
301 "Test ArrayZ length constructor, negative"

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected