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

Method testResize1

tools/swig/test/testArray.py:314–318  ·  view source on GitHub ↗

Test ArrayZ resize method, array

(self)

Source from the content-addressed store, hash-verified

312 self.assertTrue(len(self.array3) == newLen)
313
314 def testResize1(self):
315 "Test ArrayZ resize method, array"
316 a = np.zeros((2*self.length,), dtype=np.complex128)
317 self.array3.resize(a)
318 self.assertTrue(len(self.array3) == a.size)
319
320 def testResizeBad(self):
321 "Test ArrayZ resize method, negative length"

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected