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

Method testProd

tools/swig/test/testVector.py:60–64  ·  view source on GitHub ↗

Test prod function

(self)

Source from the content-addressed store, hash-verified

58
59 # Test the (type* IN_ARRAY1, int DIM1) typemap
60 def testProd(self):
61 "Test prod function"
62 print(self.typeStr, "... ", end=' ', file=sys.stderr)
63 prod = Vector.__dict__[self.typeStr + "Prod"]
64 self.assertEqual(prod([1, 2, 3, 4]), 24)
65
66 # Test the (type* IN_ARRAY1, int DIM1) typemap
67 def testProdBadList(self):

Callers

nothing calls this directly

Calls 1

prodFunction · 0.85

Tested by

no test coverage detected