aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_text.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_text.py')
-rw-r--r--test/test_text.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_text.py b/test/test_text.py
index 1b19c47..30feefc 100644
--- a/test/test_text.py
+++ b/test/test_text.py
@@ -300,6 +300,12 @@ class TestText(unittest.TestCase):
self.assertEqual(
g(txt, "[", "]", 6), ["a", "d"])
+ # invalid arguments
+ for value in INVALID:
+ self.assertEqual(g(value, "<" , ">") , [])
+ self.assertEqual(g(txt , value, ">") , [])
+ self.assertEqual(g(txt , "<" , value), [])
+
def test_extract_from(self, f=text.extract_from):
txt = "[c][b][a]: xyz! [d][e"