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