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 / cuddled.test

24 lines · 380 bytes Raw Blame History
1test_expect_success 'cuddled' '
2# LINT: first subshell statement cuddled with opening "("
3(cd foo &&
4 bar
5) &&
6
7# LINT: same with missing "&&"
8(cd foo
9 bar
10) &&
11
12# LINT: closing ")" cuddled with final subshell statement
13(
14 cd foo &&
15 bar) &&
16
17# LINT: "(" and ")" cuddled with first and final subshell statements
18(cd foo &&
19 bar) &&
20
21# LINT: same with missing "&&"
22(cd foo
23 bar)
24'