MCPcopy Create free account
hub / github.com/numpy/numpy / testMin

Method testMin

tools/swig/test/testTensor.py:104–110  ·  view source on GitHub ↗

Test min function

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
minFunction · 0.50

Tested by

no test coverage detected