summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-12 00:17:09 +0200
committermathieui <mathieui@mathieui.net>2017-10-12 00:17:09 +0200
commit0a4d66a65758f10d4d1334296212152d4f4982f3 (patch)
tree5bbe99c05ecdbb11478d6a2c5960680b33b18394 /test
parent39319d49374aea745e78fa45d546ef8d198a1448 (diff)
downloadpoezio-0a4d66a65758f10d4d1334296212152d4f4982f3.tar.gz
poezio-0a4d66a65758f10d4d1334296212152d4f4982f3.tar.bz2
poezio-0a4d66a65758f10d4d1334296212152d4f4982f3.tar.xz
poezio-0a4d66a65758f10d4d1334296212152d4f4982f3.zip
Improve the poopt test
Diffstat (limited to 'test')
-rw-r--r--test/test_poopt.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_poopt.py b/test/test_poopt.py
index 32379ac9..54d0c918 100644
--- a/test/test_poopt.py
+++ b/test/test_poopt.py
@@ -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)]