diff --git a/Tests/images/imagedraw/line_horizontal_w101px.png b/Tests/images/imagedraw/line_horizontal_w101px.png new file mode 100644 index 000000000..bbcc8133f Binary files /dev/null and b/Tests/images/imagedraw/line_horizontal_w101px.png differ diff --git a/Tests/images/imagedraw/line_vertical_w101px.png b/Tests/images/imagedraw/line_vertical_w101px.png new file mode 100644 index 000000000..558450950 Binary files /dev/null and b/Tests/images/imagedraw/line_vertical_w101px.png differ diff --git a/Tests/test_imagedraw.py b/Tests/test_imagedraw.py index defb3805a..46bb43a11 100644 --- a/Tests/test_imagedraw.py +++ b/Tests/test_imagedraw.py @@ -87,6 +87,11 @@ def test_line_horizontal(): img, draw = create_base_image_draw((20, 20)) draw.line((14, 5, 5, 5), BLACK, 3) assert_image_equal(img, expected, 'line straigth horizontal inverted 3px wide failed') + expected = Image.open(os.path.join(IMAGES_PATH, 'line_horizontal_w101px.png')) + expected.load() + img, draw = create_base_image_draw((200, 110)) + draw.line((5, 55, 195, 55), BLACK, 101) + assert_image_equal(img, expected, 'line straigth horizontal 101px wide failed') def test_line_vertical(): @@ -108,6 +113,11 @@ def test_line_vertical(): img, draw = create_base_image_draw((20, 20)) draw.line((5, 14, 5, 5), BLACK, 3) assert_image_equal(img, expected, 'line straigth vertical inverted 3px wide failed') + expected = Image.open(os.path.join(IMAGES_PATH, 'line_vertical_w101px.png')) + expected.load() + img, draw = create_base_image_draw((110, 200)) + draw.line((55, 5, 55, 195), BLACK, 101) + assert_image_equal(img, expected, 'line straigth vertical 101px wide failed') def test_line_oblique_45():