aboutsummaryrefslogtreecommitdiff
path: root/tests/lsearch.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lsearch.test')
-rw-r--r--tests/lsearch.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lsearch.test b/tests/lsearch.test
index 1eb6607..ff1342a 100644
--- a/tests/lsearch.test
+++ b/tests/lsearch.test
@@ -72,6 +72,14 @@ test lsearch-2.9 {search modes, -nocase} {
lsearch -nocase -glob {b.x ^bc xy bcx} B*
} 0
+test lsearch-2.10 {regexp with option-looking pattern} regexp {
+ lsearch -regexp {-abc -def -ghi} -def
+} 1
+
+test lsearch-2.11 {regexp with option-looking pattern, -nocase} regexp {
+ lsearch -nocase -regexp {-abc -def -ghi} -DEF
+} 1
+
test lsearch-3.1 {lsearch errors} {
list [catch lsearch msg]
} {1}