Test min function
(self)
| 91 | |
| 92 | # Test (int DIM1, int DIM2, type* IN_ARRAY2) typemap |
| 93 | def testMin(self): |
| 94 | "Test min function" |
| 95 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 96 | min = Matrix.__dict__[self.typeStr + "Min"] |
| 97 | matrix = [[9, 8], [7, 6], [5, 4]] |
| 98 | self.assertEqual(min(matrix), 4) |
| 99 | |
| 100 | # Test (int DIM1, int DIM2, type* IN_ARRAY2) typemap |
| 101 | def testMinBadList(self): |