Merge branch 'ja/doc-synopsis-markup'
[git/gitster.git] / t / chainlint / if-in-loop.test
blob5be9d1cfa585ee58d88169dffb7cbf5413744623
1 test_expect_success 'if-in-loop' '
3         for i in a b c
4         do
5                 if false
6                 then
7 # LINT: missing "&&" on "echo" okay since "exit 1" signals error explicitly
8                         echo "err"
9                         exit 1
10 # LINT: missing "&&" on "fi"
11                 fi
12                 foo
13 # LINT: missing "&&" on "done"
14         done
15         bar