The thirteenth batch
[alt-git.git] / t / chainlint / cuddled.test
blob5a6ef7a4a6d098a39e31be519943cc74d74947fb
1 test_expect_success 'cuddled' '
2 # LINT: first subshell statement cuddled with opening "("
3 (cd foo &&
4         bar
5 ) &&
7 # LINT: same with missing "&&"
8 (cd foo
9         bar
10 ) &&
12 # LINT: closing ")" cuddled with final subshell statement
14         cd foo &&
15         bar) &&
17 # LINT: "(" and ")" cuddled with first and final subshell statements
18 (cd foo &&
19         bar) &&
21 # LINT: same with missing "&&"
22 (cd foo
23         bar)