interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / chainlint / complex-if-in-cuddled-loop.test

13 lines · 350 bytes Raw Blame History
1test_expect_success 'complex-if-in-cuddled-loop' '
2# LINT: "for" loop cuddled with "(" and ")" and nested "if" with complex
3# LINT: multi-line condition; indented with spaces, not tabs
4(for i in a b c; do
5 if test "$(echo $(waffle bat))" = "eleventeen" &&
6 test "$x" = "$y"; then
7 :
8 else
9 echo >file
10 fi
11 done) &&
12test ! -f file
13'