Test floor function with wrong type
(self)
| 190 | |
| 191 | # Test (type* INPLACE_ARRAY3, int DIM1, int DIM2, int DIM3) typemap |
| 192 | def testFloorWrongDim(self): |
| 193 | "Test floor function with wrong type" |
| 194 | print(self.typeStr, "... ", file=sys.stderr) |
| 195 | floor = SuperTensor.__dict__[self.typeStr + "Floor"] |
| 196 | supertensor = np.arange(2*2*2, dtype=self.typeCode).reshape((2, 2, 2)) |
| 197 | self.assertRaises(TypeError, floor, supertensor) |
| 198 | |
| 199 | # Test (type* INPLACE_ARRAY3, int DIM1, int DIM2, int DIM3) typemap |
| 200 | def testFloorNonArray(self): |