Test ceil function
(self)
| 195 | |
| 196 | # Test (int DIM1, int DIM2, type* INPLACE_ARRAY2) typemap |
| 197 | def testCeil(self): |
| 198 | "Test ceil function" |
| 199 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 200 | ceil = Matrix.__dict__[self.typeStr + "Ceil"] |
| 201 | matrix = np.array([[1, 2], [3, 4]], self.typeCode) |
| 202 | ceil(matrix, 3) |
| 203 | np.testing.assert_array_equal(matrix, np.array([[1, 2], [3, 3]])) |
| 204 | |
| 205 | # Test (int DIM1, int DIM2, type* INPLACE_ARRAY2) typemap |
| 206 | def testCeilWrongDim(self): |
nothing calls this directly
no test coverage detected