summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-11 23:06:57 +0200
committermathieui <mathieui@mathieui.net>2017-10-11 23:06:57 +0200
commitee5e807fc2be9175ae862302a3960d6fcb4337d9 (patch)
tree9cb2d3288ff96c00fbf71d934a15c1f893cdef2b
parentbde9b31184de3138e649a662843b459fe3c3782a (diff)
downloadpoezio-ee5e807fc2be9175ae862302a3960d6fcb4337d9.tar.gz
poezio-ee5e807fc2be9175ae862302a3960d6fcb4337d9.tar.bz2
poezio-ee5e807fc2be9175ae862302a3960d6fcb4337d9.tar.xz
poezio-ee5e807fc2be9175ae862302a3960d6fcb4337d9.zip
Add a poopt.cut_text multiline unit test
-rw-r--r--test/test_poopt.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_poopt.py b/test/test_poopt.py
index cdf8d041..32379ac9 100644
--- a/test/test_poopt.py
+++ b/test/test_poopt.py
@@ -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)]