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