summaryrefslogtreecommitdiff
path: root/t/chainlint/case.expect
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/case.expect')
-rw-r--r--t/chainlint/case.expect19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/chainlint/case.expect b/t/chainlint/case.expect
new file mode 100644
index 0000000000..0a3b09e470
--- /dev/null
+++ b/t/chainlint/case.expect
@@ -0,0 +1,19 @@
+2 (
+3 case "$x" in
+4 x) foo ;;
+5 *) bar ;;
+6 esac &&
+7 foobar
+8 ) &&
+9 (
+10 case "$x" in
+11 x) foo ;;
+12 *) bar ;;
+13 esac ?!LINT: missing '&&'?!
+14 foobar
+15 ) &&
+16 (
+17 case "$x" in 1) true;; esac &&
+18 case "$y" in 2) false;; esac ?!LINT: missing '&&'?!
+19 foobar
+20 )