Git 2.46-rc2
[alt-git.git] / t / chainlint / complex-if-in-cuddled-loop.test
blobf98ae4c42df287d6ac0124cbead7799124c1baf0
1 test_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) &&
12 test ! -f file