| 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 |
| 13 | ' |