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

Method testMin

tools/swig/test/testMatrix.py:93–98  ·  view source on GitHub ↗

Test min function

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
minFunction · 0.50

Tested by

no test coverage detected