()
| 535 | |
| 536 | |
| 537 | def test_arc_unwrap_partial_turn(): |
| 538 | # A span comfortably more than a whole number of turns (not near-integer) |
| 539 | # is unwrapped to the equivalent shortest arc within 360 degrees. |
| 540 | np.testing.assert_allclose(Path.arc(0, 410).vertices, |
| 541 | Path.arc(0, 50).vertices) |
| 542 | np.testing.assert_allclose(Path.arc(0, 540).vertices, |
| 543 | Path.arc(0, 180).vertices) |
| 544 | # A span a clear fraction of a degree past a full turn is the caller's |
| 545 | # explicit request and must NOT be snapped to a circle (tolerance guard). |
| 546 | np.testing.assert_allclose(Path.arc(0, 360.001).vertices, |
| 547 | Path.arc(0, 0.001).vertices) |
| 548 | |
| 549 | |
| 550 | def test_disjoint_zero_length_segment(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…