Skip to content

Commit

Permalink
Merge pull request #1 from radarhere/ellipse
Browse files Browse the repository at this point in the history
Adjusted symmetry test
  • Loading branch information
xtsm committed Apr 23, 2020
2 parents 68f87e1 + 5923f95 commit a414818
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tests/test_imagedraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,11 @@ def test_ellipse_edge():


def test_ellipse_symmetric():
for bbox in [(24, 25, 76, 75), (25, 25, 75, 75), (25, 24, 75, 76)]:
im = Image.new("RGB", (101, 101))
for width, bbox in (
(100, (24, 24, 75, 75)),
(101, (25, 25, 75, 75)),
):
im = Image.new("RGB", (width, 100))
draw = ImageDraw.Draw(im)
draw.ellipse(bbox, fill="green", outline="blue")
assert_image_equal(im, im.transpose(Image.FLIP_LEFT_RIGHT))
Expand Down

0 comments on commit a414818

Please sign in to comment.