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

Method testProd

tools/swig/test/testVector.py:59–63  ·  view source on GitHub ↗

Test prod function

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
prodFunction · 0.50

Tested by

no test coverage detected