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