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

Method testLength

tools/swig/test/testArray.py:300–302  ·  view source on GitHub ↗

Test ArrayZ length method

(self)

Source from the content-addressed store, hash-verified

298 self.assertRaises(ValueError, Array.ArrayZ, -4)
299
300 def testLength(self):
301 "Test ArrayZ length method"
302 self.assertTrue(self.array3.length() == self.length)
303
304 def testLen(self):
305 "Test ArrayZ __len__ method"

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected