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

Method testConstructor2

tools/swig/test/testArray.py:135–139  ·  view source on GitHub ↗

Test Array2 array constructor

(self)

Source from the content-addressed store, hash-verified

133 self.assertTrue(isinstance(self.array2, Array.Array2))
134
135 def testConstructor2(self):
136 "Test Array2 array constructor"
137 na = np.zeros((3, 4), dtype="l")
138 aa = Array.Array2(na)
139 self.assertTrue(isinstance(aa, Array.Array2))
140
141 def testConstructor3(self):
142 "Test Array2 copy constructor"

Callers

nothing calls this directly

Calls 1

Array2Method · 0.80

Tested by

no test coverage detected