summaryrefslogtreecommitdiff
path: root/t/chainlint/block.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/block.test')
-rw-r--r--t/chainlint/block.test18
1 files changed, 15 insertions, 3 deletions
diff --git a/t/chainlint/block.test b/t/chainlint/block.test
index d859151..4ab69a4 100644
--- a/t/chainlint/block.test
+++ b/t/chainlint/block.test
@@ -1,6 +1,5 @@
(
-# LINT: missing "&&" in block not currently detected (for consistency with
-# LINT: --chain-lint at top level and to provide escape hatch if needed)
+# LINT: missing "&&" after first "echo"
foo &&
{
echo a
@@ -12,4 +11,17 @@
echo c
}
baz
-)
+) &&
+
+# LINT: ";" not allowed in place of "&&"
+{
+ echo a; echo b
+} &&
+{ echo a; echo b; } &&
+
+# LINT: "}" inside string not mistaken as end of block
+{
+ echo "${var}9" &&
+ echo "done"
+} &&
+finis