MCPcopy Index your code
hub / github.com/numpy/numpy / testMin

Method testMin

tools/swig/test/testTensor.py:105–111  ·  view source on GitHub ↗

Test min function

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

minFunction · 0.50

Tested by

no test coverage detected