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

Method testMin

tools/swig/test/testMatrix.py:94–99  ·  view source on GitHub ↗

Test min function

(self)

Source from the content-addressed store, hash-verified

92
93 # Test (int DIM1, int DIM2, type* IN_ARRAY2) typemap
94 def testMin(self):
95 "Test min function"
96 print(self.typeStr, "... ", end=' ', file=sys.stderr)
97 min = Matrix.__dict__[self.typeStr + "Min"]
98 matrix = [[9, 8], [7, 6], [5, 4]]
99 self.assertEqual(min(matrix), 4)
100
101 # Test (int DIM1, int DIM2, type* IN_ARRAY2) typemap
102 def testMinBadList(self):

Callers

nothing calls this directly

Calls 1

minFunction · 0.50

Tested by

no test coverage detected