summaryrefslogtreecommitdiff
path: root/t/chainlint/cuddled-if-then-else.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/cuddled-if-then-else.test')
-rw-r--r--t/chainlint/cuddled-if-then-else.test7
1 files changed, 7 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..eed774a9d6
--- /dev/null
+++ b/t/chainlint/cuddled-if-then-else.test
@@ -0,0 +1,7 @@
+# LINT: 'if' cuddled with "(" and ")"; indented with spaces, not tabs
+(if test -z ""; then
+ echo empty
+ else
+ echo bizzy
+ fi) &&
+echo foobar