8000 BUG: Show bug test case · matplotlib/matplotlib@54a61cc · GitHub
[go: up one dir, main page]

Skip to content

Commit 54a61cc

Browse files
committed
BUG: Show bug test case
1 parent df67aaf commit 54a61cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/matplotlib/tests/test_lines.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818
from matplotlib.testing.decorators import image_comparison, check_figures_equal
1919

2020

21+
def test_segment_hits():
22+
"""Test a problematic case."""
23+
cx, cy = 553, 902
24+
x, y = np.array([553., 553.]), np.array([95., 947.])
25+
radius = 6.94
26+
assert_array_equal(mlines.segment_hits(cx, cy, x, y, radius), [0])
27+
28+
2129
# Runtimes on a loaded system are inherently flaky. Not so much that a rerun
2230
# won't help, hopefully.
2331
@pytest.mark.flaky(reruns=3)

0 commit comments

Comments
 (0)
0