Test max function
(self)
| 62 | |
| 63 | # Test (type* IN_ARRAY2, int DIM1, int DIM2) typemap |
| 64 | def testMax(self): |
| 65 | "Test max function" |
| 66 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 67 | max = Matrix.__dict__[self.typeStr + "Max"] |
| 68 | matrix = [[6, 5, 4], [3, 2, 1]] |
| 69 | self.assertEqual(max(matrix), 6) |
| 70 | |
| 71 | # Test (type* IN_ARRAY2, int DIM1, int DIM2) typemap |
| 72 | def testMaxBadList(self): |