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

Method testMin

tools/swig/test/testSuperTensor.py:96–101  ·  view source on GitHub ↗

Test min function

(self)

Source from the content-addressed store, hash-verified

94
95 # Test (int DIM1, int DIM2, int DIM3, type* IN_ARRAY3) typemap
96 def testMin(self):
97 "Test min function"
98 print(self.typeStr, "... ", file=sys.stderr)
99 min = SuperTensor.__dict__[self.typeStr + "Min"]
100 supertensor = [[[[9, 8], [7, 6]], [[5, 4], [3, 2]]], [[[9, 8], [7, 6]], [[5, 4], [3, 2]]]]
101 self.assertEqual(min(supertensor), 2)
102
103 # Test (int DIM1, int DIM2, int DIM3, type* IN_ARRAY3) typemap
104 def testMinBadList(self):

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
minFunction · 0.50

Tested by

no test coverage detected