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

Method testCeilNonArray

tools/swig/test/testSuperTensor.py:234–239  ·  view source on GitHub ↗

Test ceil function with non-array

(self)

Source from the content-addressed store, hash-verified

232
233 # Test (int DIM1, int DIM2, int DIM3, type* INPLACE_ARRAY3) typemap
234 def testCeilNonArray(self):
235 "Test ceil function with non-array"
236 print(self.typeStr, "... ", file=sys.stderr)
237 ceil = SuperTensor.__dict__[self.typeStr + "Ceil"]
238 supertensor = np.arange(2*2*2*2, dtype=self.typeCode).reshape((2, 2, 2, 2)).tolist()
239 self.assertRaises(TypeError, ceil, supertensor)
240
241 # Test (type ARGOUT_ARRAY3[ANY][ANY][ANY]) typemap
242 def testLUSplit(self):

Callers

nothing calls this directly

Calls 3

printFunction · 0.85
reshapeMethod · 0.80
tolistMethod · 0.45

Tested by

no test coverage detected