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

Method testResize1

tools/swig/test/testArray.py:179–183  ·  view source on GitHub ↗

Test Array2 resize method, array

(self)

Source from the content-addressed store, hash-verified

177 self.assertTrue(len(self.array2) == newRows * newCols)
178
179 def testResize1(self):
180 "Test Array2 resize method, array"
181 a = np.zeros((2 * self.nrows, 2 * self.ncols), dtype='l')
182 self.array2.resize(a)
183 self.assertTrue(len(self.array2) == a.size)
184
185 def testResizeBad1(self):
186 "Test Array2 resize method, negative nrows"

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected