diff options
Diffstat (limited to 't/chainlint/cuddled-if-then-else.test')
-rw-r--r-- | t/chainlint/cuddled-if-then-else.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/chainlint/cuddled-if-then-else.test b/t/chainlint/cuddled-if-then-else.test new file mode 100644 index 0000000000..b1b42e1aac --- /dev/null +++ b/t/chainlint/cuddled-if-then-else.test @@ -0,0 +1,9 @@ +test_expect_success 'cuddled-if-then-else' ' +# LINT: "if" cuddled with "(" and ")"; indented with spaces, not tabs +(if test -z ""; then + echo empty + else + echo bizzy + fi) && +echo foobar +' |