MCPcopy Create free account
hub / github.com/numpy/numpy / testConstructor3

Method testConstructor3

tools/swig/test/testArray.py:290–294  ·  view source on GitHub ↗

Test ArrayZ copy constructor

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

ArrayZMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected