Test ceil function with wrong dimensions
(self)
| 234 | |
| 235 | # Test (int DIM1, int DIM2, int DIM3, type* INPLACE_ARRAY3) typemap |
| 236 | def testCeilWrongDim(self): |
| 237 | "Test ceil function with wrong dimensions" |
| 238 | print(self.typeStr, "... ", file=sys.stderr) |
| 239 | ceil = SuperTensor.__dict__[self.typeStr + "Ceil"] |
| 240 | supertensor = np.arange(2 * 2 * 2, dtype=self.typeCode).reshape((2, 2, 2)) |
| 241 | self.assertRaises(TypeError, ceil, supertensor) |
| 242 | |
| 243 | # Test (int DIM1, int DIM2, int DIM3, type* INPLACE_ARRAY3) typemap |
| 244 | def testCeilNonArray(self): |