Test prod function
(self)
| 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): |