summaryrefslogtreecommitdiff
path: root/t/chainlint/if-condition-split.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/if-condition-split.test')
-rw-r--r--t/chainlint/if-condition-split.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/chainlint/if-condition-split.test b/t/chainlint/if-condition-split.test
new file mode 100644
index 0000000000..9a3b3ed04a
--- /dev/null
+++ b/t/chainlint/if-condition-split.test
@@ -0,0 +1,10 @@
+test_expect_success 'if-condition-split' '
+# LINT: "if" condition split across multiple lines at "&&" or "||"
+if bob &&
+ marcia ||
+ kevin
+then
+ echo "nomads"
+ echo "for sure"
+fi
+'