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

Method testConstructor2

tools/swig/test/testArray.py:34–38  ·  view source on GitHub ↗

Test Array1 array constructor

(self)

Source from the content-addressed store, hash-verified

32 self.assertTrue(isinstance(self.array1, Array.Array1))
33
34 def testConstructor2(self):
35 "Test Array1 array constructor"
36 na = np.arange(self.length)
37 aa = Array.Array1(na)
38 self.assertTrue(isinstance(aa, Array.Array1))
39
40 def testConstructor3(self):
41 "Test Array1 copy constructor"

Callers

nothing calls this directly

Calls 1

Array1Method · 0.80

Tested by

no test coverage detected