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

Method testResize1

tools/swig/test/testArray.py:64–68  ·  view source on GitHub ↗

Test Array1 resize method, array

(self)

Source from the content-addressed store, hash-verified

62 self.assertTrue(len(self.array1) == newLen)
63
64 def testResize1(self):
65 "Test Array1 resize method, array"
66 a = np.zeros((2 * self.length,), dtype='l')
67 self.array1.resize(a)
68 self.assertTrue(len(self.array1) == a.size)
69
70 def testResizeBad(self):
71 "Test Array1 resize method, negative length"

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected