Test max function
(self)
| 67 | |
| 68 | # Test (type* IN_ARRAY3, int DIM1, int DIM2, int DIM3) typemap |
| 69 | def testMax(self): |
| 70 | "Test max function" |
| 71 | print(self.typeStr, "... ", file=sys.stderr) |
| 72 | max = SuperTensor.__dict__[self.typeStr + "Max"] |
| 73 | supertensor = [[[[1, 2], [3, 4]], [[5, 6], [7, 8]]], |
| 74 | [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]] |
| 75 | self.assertEqual(max(supertensor), 8) |
| 76 | |
| 77 | # Test (type* IN_ARRAY3, int DIM1, int DIM2, int DIM3) typemap |
| 78 | def testMaxBadList(self): |
nothing calls this directly
no outgoing calls
no test coverage detected