repo.or.cz
/
alt-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Git 2.46-rc2
[alt-git.git]
/
t
/
chainlint
/
complex-if-in-cuddled-loop.test
blob
f98ae4c42df287d6ac0124cbead7799124c1baf0
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
'