()
| 184 | |
| 185 | |
| 186 | def test_transform_with_wrap() -> None: |
| 187 | # Arrange |
| 188 | p = ImagePath.Path([0, 1, 2, 3]) |
| 189 | theta = math.pi / 15 |
| 190 | |
| 191 | # Act |
| 192 | # Affine transform, in-place, with wrap parameter |
| 193 | p.transform( |
| 194 | (math.cos(theta), math.sin(theta), 20, -math.sin(theta), math.cos(theta), 20), |
| 195 | 1.0, |
| 196 | ) |
| 197 | |
| 198 | # Assert |
| 199 | assert p.tolist() == [ |
| 200 | (0.20791169081775962, 20.978147600733806), |
| 201 | (0.5800302739208902, 22.518619420565898), |
| 202 | ] |
| 203 | |
| 204 | |
| 205 | def test_overflow_segfault() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…