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

Method testConstructor3

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

Test Array1 copy constructor

(self)

Source from the content-addressed store, hash-verified

38 self.assertTrue(isinstance(aa, Array.Array1))
39
40 def testConstructor3(self):
41 "Test Array1 copy constructor"
42 for i in range(self.array1.length()): 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 2

Array1Method · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected