()
| 506 | |
| 507 | |
| 508 | def test_clipping_full(): |
| 509 | p = Path([[1e30, 1e30]] * 5) |
| 510 | simplified = list(p.iter_segments(clip=[0, 0, 100, 100])) |
| 511 | assert simplified == [] |
| 512 | |
| 513 | p = Path([[50, 40], [75, 65]], [1, 2]) |
| 514 | simplified = list(p.iter_segments(clip=[0, 0, 100, 100])) |
| 515 | assert ([(list(x), y) for x, y in simplified] == |
| 516 | [([50, 40], 1), ([75, 65], 2)]) |
| 517 | |
| 518 | p = Path([[50, 40]], [1]) |
| 519 | simplified = list(p.iter_segments(clip=[0, 0, 100, 100])) |
| 520 | assert ([(list(x), y) for x, y in simplified] == |
| 521 | [([50, 40], 1)]) |
| 522 | |
| 523 | |
| 524 | def test_simplify_closepoly(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…