diff --git a/tests/draw/test_text.py b/tests/draw/test_text.py index b59757f9..b008b15f 100644 --- a/tests/draw/test_text.py +++ b/tests/draw/test_text.py @@ -294,6 +294,84 @@ def test_line_clamp_number(assert_pixels): ''') +def test_line_clamp_nested(assert_pixels): + assert_pixels(''' + BBBB__BB__ + BBBB__BB__ + BBBB__BB__ + BBBB__BB__ + BBBBBBBBBB + BBBBBBBBBB + __________ + __________ + __________ + __________ + ''', ''' + + +
+ bb b + cc c + dddd + eeee + ffff + gggg + hhhh +
++ bb b +
+ cc c + dddd + eeee + ffff + gggg + hhhh +