]> git.ipfire.org Git - thirdparty/git.git/blame - t/chainlint/case.test
Merge branch 'en/fetch-negotiation-default-fix'
[thirdparty/git.git] / t / chainlint / case.test
CommitLineData
ebcbbe06 1(
5459bc1b 2# LINT: "...)" arms in "case" not misinterpreted as subshell-closing ")"
ebcbbe06
ES
3 case "$x" in
4 x) foo ;;
5 *) bar ;;
6 esac &&
7 foobar
8) &&
9(
5459bc1b 10# LINT: missing "&&" on "esac"
ebcbbe06
ES
11 case "$x" in
12 x) foo ;;
13 *) bar ;;
14 esac
15 foobar
16) &&
17(
5459bc1b 18# LINT: "...)" arm in one-liner "case" not misinterpreted as closing ")"
ebcbbe06
ES
19 case "$x" in 1) true;; esac &&
20# LINT: same but missing "&&"
21 case "$y" in 2) false;; esac
22 foobar
23)