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

Method testLength

tools/swig/test/testArray.py:304–306  ·  view source on GitHub ↗

Test ArrayZ length method

(self)

Source from the content-addressed store, hash-verified

302 self.assertRaises(ValueError, Array.ArrayZ, -4)
303
304 def testLength(self):
305 "Test ArrayZ length method"
306 self.assertTrue(self.array3.length() == self.length)
307
308 def testLen(self):
309 "Test ArrayZ __len__ method"

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected