From b8ee7436e53d67e7db7e3e5a81efa39228127982 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 21 Jul 2018 13:51:21 -0700 Subject: [PATCH] Add a test for 03ce3b15 --- src/ShellCheck/Parser.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ShellCheck/Parser.hs b/src/ShellCheck/Parser.hs index 608ebe1..3b3d8d4 100644 --- a/src/ShellCheck/Parser.hs +++ b/src/ShellCheck/Parser.hs @@ -900,6 +900,7 @@ prop_readCondition19 = isOk readCondition "[ '(' x \")\" ]" prop_readCondition20 = isOk readCondition "[[ echo_rc -eq 0 ]]" prop_readCondition21 = isOk readCondition "[[ $1 =~ ^(a\\ b)$ ]]" prop_readCondition22 = isOk readCondition "[[ $1 =~ \\.a\\.(\\.b\\.)\\.c\\. ]]" +prop_readCondition23 = isOk readCondition "[[ -v arr[$var] ]]" readCondition = called "test expression" $ do opos <- getPosition start <- startSpan