Test min function
(self)
| 94 | |
| 95 | # Test (int DIM1, int DIM2, int DIM3, type* IN_ARRAY3) typemap |
| 96 | def testMin(self): |
| 97 | "Test min function" |
| 98 | print(self.typeStr, "... ", file=sys.stderr) |
| 99 | min = SuperTensor.__dict__[self.typeStr + "Min"] |
| 100 | supertensor = [[[[9, 8], [7, 6]], [[5, 4], [3, 2]]], [[[9, 8], [7, 6]], [[5, 4], [3, 2]]]] |
| 101 | self.assertEqual(min(supertensor), 2) |
| 102 | |
| 103 | # Test (int DIM1, int DIM2, int DIM3, type* IN_ARRAY3) typemap |
| 104 | def testMinBadList(self): |