mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-24 14:14:47 +03:00
add float number to test
This commit is contained in:
parent
ed7436169c
commit
cb8b570c2e
|
@ -812,13 +812,14 @@ class TestImageDraw(PillowTestCase):
|
||||||
im = hopper()
|
im = hopper()
|
||||||
draw = ImageDraw.Draw(im)
|
draw = ImageDraw.Draw(im)
|
||||||
|
|
||||||
|
x0, y0, x1, y1 = 20, 20, 30.0, 30.0
|
||||||
xys = [
|
xys = [
|
||||||
[X0, Y0, X1, Y1],
|
[x0, y0, x1, y1],
|
||||||
[[X0, Y0], [X1, Y1]],
|
[[x0, y0], [x1, y1]],
|
||||||
[(X0, Y0), (X1, Y1)],
|
[(x0, y0), (x1, y1)],
|
||||||
(X0, Y0, X1, Y1),
|
(x0, y0, x1, y1),
|
||||||
([X0, Y0], [X1, Y1]),
|
([x0, y0], [x1, y1]),
|
||||||
((X0, Y0), (X1, Y1)),
|
((x0, y0), (x1, y1)),
|
||||||
]
|
]
|
||||||
|
|
||||||
for xy in xys:
|
for xy in xys:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user