Test floor function
(self)
| 162 | |
| 163 | # Test (type* INPLACE_ARRAY2, int DIM1, int DIM2) typemap |
| 164 | def testFloor(self): |
| 165 | "Test floor function" |
| 166 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 167 | floor = Matrix.__dict__[self.typeStr + "Floor"] |
| 168 | matrix = np.array([[6, 7], [8, 9]], self.typeCode) |
| 169 | floor(matrix, 7) |
| 170 | np.testing.assert_array_equal(matrix, np.array([[7, 7], [8, 9]])) |
| 171 | |
| 172 | # Test (type* INPLACE_ARRAY2, int DIM1, int DIM2) typemap |
| 173 | def testFloorWrongDim(self): |
nothing calls this directly
no test coverage detected