aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test-cases/case3_negative_lookahead/script.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-cases/case3_negative_lookahead/script.sh b/test-cases/case3_negative_lookahead/script.sh
index 837f208..987a886 100644
--- a/test-cases/case3_negative_lookahead/script.sh
+++ b/test-cases/case3_negative_lookahead/script.sh
@@ -41,3 +41,15 @@ fun x4 {
match x4 x yes
match x4 xa no
match x4 xy yes
+
+fun x5 {
+ case $1 {
+ (?!foo)... { echo yes }
+ .* { echo no }
+ }
+}
+match x5 x no
+match x5 xy no
+match x5 xyz yes
+match x5 foo no
+match x5 abc yes