summaryrefslogtreecommitdiff
path: root/test/test_poopt.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_poopt.py')
-rw-r--r--test/test_poopt.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_poopt.py b/test/test_poopt.py
new file mode 100644
index 00000000..9b640ff0
--- /dev/null
+++ b/test/test_poopt.py
@@ -0,0 +1,14 @@
+"""
+Test of the poopt module
+"""
+
+import pytest
+import sys
+sys.path.append('src')
+
+from poopt import cut_text
+
+def test_cut_text():
+
+ text = '12345678901234567890'
+ assert cut_text(text, 5) == [(0, 5), (5, 10), (10, 15), (15, 20)]