summaryrefslogtreecommitdiff
path: root/t/chainlint/loop-in-if.test
blob: b0d0d393cfeb1e66a63e4263cf88c44e4993a40c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
test_expect_success 'loop-in-if' '
(
	if true
	then
		while true
		do
# LINT: missing "&&" on "echo"
			echo "pop"
			echo "glup"
# LINT: missing "&&" on "done"
		done
		foo
# LINT: missing "&&" on "fi"
	fi
	bar
)
'