diff options
Diffstat (limited to 't/chainlint/cuddled.test')
-rw-r--r-- | t/chainlint/cuddled.test | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/t/chainlint/cuddled.test b/t/chainlint/cuddled.test new file mode 100644 index 0000000000..5a6ef7a4a6 --- /dev/null +++ b/t/chainlint/cuddled.test @@ -0,0 +1,24 @@ +test_expect_success 'cuddled' ' +# LINT: first subshell statement cuddled with opening "(" +(cd foo && + bar +) && + +# LINT: same with missing "&&" +(cd foo + bar +) && + +# LINT: closing ")" cuddled with final subshell statement +( + cd foo && + bar) && + +# LINT: "(" and ")" cuddled with first and final subshell statements +(cd foo && + bar) && + +# LINT: same with missing "&&" +(cd foo + bar) +' |