This commit is contained in:
Tsung-Po Sun 2021-01-31 15:21:38 +09:00 committed by Andrew Murray
parent 324d934128
commit df0273e024

View File

@ -1355,7 +1355,19 @@ def test_continuous_horizontal_edges_polygon():
os.path.join(IMAGES_PATH, "continuous_horizontal_edges_polygon.png") os.path.join(IMAGES_PATH, "continuous_horizontal_edges_polygon.png")
) as expected: ) as expected:
expected.load() expected.load()
xy = [(2, 6), (12, 6), (12, 12), (8, 12), (8, 9), (8, 8), (5, 8), (4, 8), (3, 8), (2, 8), (2, 7)] xy = [
(2, 6),
(12, 6),
(12, 12),
(8, 12),
(8, 9),
(8, 8),
(5, 8),
(4, 8),
(3, 8),
(2, 8),
(2, 7)
]
img, draw = create_base_image_draw((16, 16)) img, draw = create_base_image_draw((16, 16))
draw.polygon(xy, BLACK) draw.polygon(xy, BLACK)
assert_image_equal(img, expected, "continuous horizontal edges polygon failed") assert_image_equal(img, expected, "continuous horizontal edges polygon failed")