Add a poopt.cut_text multiline unit test
This commit is contained in:
parent
bde9b31184
commit
ee5e807fc2
1 changed files with 4 additions and 0 deletions
|
@ -10,3 +10,7 @@ def test_cut_text():
|
|||
|
||||
text = '12345678901234567890'
|
||||
assert cut_text(text, 5) == [(0, 5), (5, 10), (10, 15), (15, 20)]
|
||||
|
||||
def test_cut_text():
|
||||
text = 'a\nb\nc\nd'
|
||||
assert cut_text(text, 10) == [(0, 2), (2, 4), (4, 6), (6, 7)]
|
||||
|
|
Loading…
Reference in a new issue