MCPcopy Index your code
hub / github.com/numpy/numpy / testFloorWrongDim

Method testFloorWrongDim

tools/swig/test/testSuperTensor.py:201–206  ·  view source on GitHub ↗

Test floor function with wrong type

(self)

Source from the content-addressed store, hash-verified

199
200 # Test (type* INPLACE_ARRAY3, int DIM1, int DIM2, int DIM3) typemap
201 def testFloorWrongDim(self):
202 "Test floor function with wrong type"
203 print(self.typeStr, "... ", file=sys.stderr)
204 floor = SuperTensor.__dict__[self.typeStr + "Floor"]
205 supertensor = np.arange(2 * 2 * 2, dtype=self.typeCode).reshape((2, 2, 2))
206 self.assertRaises(TypeError, floor, supertensor)
207
208 # Test (type* INPLACE_ARRAY3, int DIM1, int DIM2, int DIM3) typemap
209 def testFloorNonArray(self):

Callers

nothing calls this directly

Calls 1

reshapeMethod · 0.80

Tested by

no test coverage detected