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

Method testMax

tools/swig/test/testSuperTensor.py:69–75  ·  view source on GitHub ↗

Test max function

(self)

Source from the content-addressed store, hash-verified

67
68 # Test (type* IN_ARRAY3, int DIM1, int DIM2, int DIM3) typemap
69 def testMax(self):
70 "Test max function"
71 print(self.typeStr, "... ", file=sys.stderr)
72 max = SuperTensor.__dict__[self.typeStr + "Max"]
73 supertensor = [[[[1, 2], [3, 4]], [[5, 6], [7, 8]]],
74 [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]]
75 self.assertEqual(max(supertensor), 8)
76
77 # Test (type* IN_ARRAY3, int DIM1, int DIM2, int DIM3) typemap
78 def testMaxBadList(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected