Test floor function with wrong type
(self)
| 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): |