From d1059e8648d9a567d8a09b4f564bceb1a40fa262 Mon Sep 17 00:00:00 2001 From: Jonas Maier Date: Tue, 2 Jun 2026 22:15:21 +0200 Subject: one more negative lookahead test --- test-cases/case3_negative_lookahead/script.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test-cases/case3_negative_lookahead/script.sh') 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 -- cgit v1.2.3