Test ceil function with wrong dimensions
(self)
| 224 | |
| 225 | # Test (int DIM1, int DIM2, int DIM3, type* INPLACE_ARRAY3) typemap |
| 226 | def testCeilWrongDim(self): |
| 227 | "Test ceil function with wrong dimensions" |
| 228 | print(self.typeStr, "... ", file=sys.stderr) |
| 229 | ceil = SuperTensor.__dict__[self.typeStr + "Ceil"] |
| 230 | supertensor = np.arange(2*2*2, dtype=self.typeCode).reshape((2, 2, 2)) |
| 231 | self.assertRaises(TypeError, ceil, supertensor) |
| 232 | |
| 233 | # Test (int DIM1, int DIM2, int DIM3, type* INPLACE_ARRAY3) typemap |
| 234 | def testCeilNonArray(self): |