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