From ee5e807fc2be9175ae862302a3960d6fcb4337d9 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 11 Oct 2017 23:06:57 +0200 Subject: Add a poopt.cut_text multiline unit test --- test/test_poopt.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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)] -- cgit v1.2.3