Test max function
(self)
| 64 | |
| 65 | # Test (type* IN_ARRAY3, int DIM1, int DIM2, int DIM3) typemap |
| 66 | def testMax(self): |
| 67 | "Test max function" |
| 68 | print(self.typeStr, "... ", file=sys.stderr) |
| 69 | max = SuperTensor.__dict__[self.typeStr + "Max"] |
| 70 | supertensor = [[[[1, 2], [3, 4]], [[5, 6], [7, 8]]], [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]] |
| 71 | self.assertEqual(max(supertensor), 8) |
| 72 | |
| 73 | # Test (type* IN_ARRAY3, int DIM1, int DIM2, int DIM3) typemap |
| 74 | def testMaxBadList(self): |