MCPcopy
hub / github.com/numpy/numpy / testMin

Method testMin

tools/swig/test/testSuperTensor.py:101–107  ·  view source on GitHub ↗

Test min function

(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

minFunction · 0.50

Tested by

no test coverage detected