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