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

Method testMax

tools/swig/test/testSuperTensor.py:66–71  ·  view source on GitHub ↗

Test max function

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
maxFunction · 0.50

Tested by

no test coverage detected