add test for text autofit

This commit is contained in:
John Cupitt 2019-12-21 05:38:39 +00:00
parent 1e2ca2e0bf
commit 981ffe752b

View File

@ -392,6 +392,10 @@ class TestCreate:
assert im.max() == 255
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):
im = pyvips.Image.tonelut()
assert im.bands == 1