Test min function
(self)
| 103 | |
| 104 | # Test (int DIM1, int DIM2, int DIM3, type* IN_ARRAY3) typemap |
| 105 | def testMin(self): |
| 106 | "Test min function" |
| 107 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 108 | min = Tensor.__dict__[self.typeStr + "Min"] |
| 109 | tensor = [[[9, 8], [7, 6]], |
| 110 | [[5, 4], [3, 2]]] |
| 111 | self.assertEqual(min(tensor), 2) |
| 112 | |
| 113 | # Test (int DIM1, int DIM2, int DIM3, type* IN_ARRAY3) typemap |
| 114 | def testMinBadList(self): |