MCPcopy
hub / github.com/numpy/numpy / testMax

Method testMax

tools/swig/test/testMatrix.py:64–69  ·  view source on GitHub ↗

Test max function

(self)

Source from the content-addressed store, hash-verified

62
63 # Test (type* IN_ARRAY2, int DIM1, int DIM2) typemap
64 def testMax(self):
65 "Test max function"
66 print(self.typeStr, "... ", end=' ', file=sys.stderr)
67 max = Matrix.__dict__[self.typeStr + "Max"]
68 matrix = [[6, 5, 4], [3, 2, 1]]
69 self.assertEqual(max(matrix), 6)
70
71 # Test (type* IN_ARRAY2, int DIM1, int DIM2) typemap
72 def testMaxBadList(self):

Callers

nothing calls this directly

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected