Improve the poopt test
This commit is contained in:
parent
39319d4937
commit
0a4d66a657
1 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,8 @@ 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)]
|
||||
|
||||
text = 'vivent les réfrigérateurs'
|
||||
assert cut_text(text, 6) == [(0, 6), (6, 10), (11, 17), (17, 23), (23, 25)]
|
||||
|
|
Loading…
Reference in a new issue