add test for text autofit
This commit is contained in:
parent
1e2ca2e0bf
commit
981ffe752b
@ -392,6 +392,10 @@ class TestCreate:
|
|||||||
assert im.max() == 255
|
assert im.max() == 255
|
||||||
assert im.min() == 0
|
assert im.min() == 0
|
||||||
|
|
||||||
|
# test autofit
|
||||||
|
im = pyvips.Image.text("Hello, world!", width=500, height=500)
|
||||||
|
assert abs(im.width - 500) < 10
|
||||||
|
|
||||||
def test_tonelut(self):
|
def test_tonelut(self):
|
||||||
im = pyvips.Image.tonelut()
|
im = pyvips.Image.tonelut()
|
||||||
assert im.bands == 1
|
assert im.bands == 1
|
||||||
|
Loading…
Reference in New Issue
Block a user