Test max function
(self)
| 70 | |
| 71 | # Test (type* IN_ARRAY3, int DIM1, int DIM2, int DIM3) typemap |
| 72 | def testMax(self): |
| 73 | "Test max function" |
| 74 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 75 | max = Tensor.__dict__[self.typeStr + "Max"] |
| 76 | tensor = [[[1, 2], [3, 4]], |
| 77 | [[5, 6], [7, 8]]] |
| 78 | self.assertEqual(max(tensor), 8) |
| 79 | |
| 80 | # Test (type* IN_ARRAY3, int DIM1, int DIM2, int DIM3) typemap |
| 81 | def testMaxBadList(self): |