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

Method testLength

tools/swig/test/testArray.py:50–52  ·  view source on GitHub ↗

Test Array1 length method

(self)

Source from the content-addressed store, hash-verified

48 self.assertRaises(ValueError, Array.Array1, -4)
49
50 def testLength(self):
51 "Test Array1 length method"
52 self.assertTrue(self.array1.length() == self.length)
53
54 def testLen(self):
55 "Test Array1 __len__ method"

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected