MCPcopy Index your code
hub / github.com/numpy/numpy / testResize0

Method testResize0

tools/swig/test/testArray.py:172–177  ·  view source on GitHub ↗

Test Array2 resize method, size

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected