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

Method testResize0

tools/swig/test/testArray.py:169–174  ·  view source on GitHub ↗

Test Array2 resize method, size

(self)

Source from the content-addressed store, hash-verified

167 self.assertTrue(len(self.array2) == self.nrows*self.ncols)
168
169 def testResize0(self):
170 "Test Array2 resize method, size"
171 newRows = 2 * self.nrows
172 newCols = 2 * self.ncols
173 self.array2.resize(newRows, newCols)
174 self.assertTrue(len(self.array2) == newRows * newCols)
175
176 def testResize1(self):
177 "Test Array2 resize method, array"

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected