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

Method testConstructor0

tools/swig/test/testArray.py:125–129  ·  view source on GitHub ↗

Test Array2 default constructor

(self)

Source from the content-addressed store, hash-verified

123 self.array2 = Array.Array2(self.nrows, self.ncols)
124
125 def testConstructor0(self):
126 "Test Array2 default constructor"
127 a = Array.Array2()
128 self.assertTrue(isinstance(a, Array.Array2))
129 self.assertTrue(len(a) == 0)
130
131 def testConstructor1(self):
132 "Test Array2 nrows, ncols constructor"

Callers

nothing calls this directly

Calls 1

Array2Method · 0.80

Tested by

no test coverage detected