interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / chainlint / while-loop.test

21 lines · 344 bytes Raw Blame History
1test_expect_success 'while-loop' '
2(
3# LINT: "while", "do", "done" do not need "&&"
4 while true
5 do
6# LINT: missing "&&" on "echo"
7 echo foo
8# LINT: last statement of while does not need "&&"
9 cat <<-\EOF
10 bar
11 EOF
12# LINT: missing "&&" on "done"
13 done
14
15# LINT: "do" on same line as "while"
16 while true; do
17 echo foo &&
18 cat bar
19 done
20)
21'