summaryrefslogtreecommitdiff
path: root/t/chainlint/negated-one-liner.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/negated-one-liner.test')
-rw-r--r--t/chainlint/negated-one-liner.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/chainlint/negated-one-liner.test b/t/chainlint/negated-one-liner.test
new file mode 100644
index 0000000000..30f4cc5a9b
--- /dev/null
+++ b/t/chainlint/negated-one-liner.test
@@ -0,0 +1,9 @@
+test_expect_success 'negated-one-liner' '
+# LINT: top-level one-liner subshell
+! (foo && bar) &&
+! (foo && bar) >baz &&
+
+# LINT: top-level one-liner subshell missing internal "&&"
+! (foo; bar) &&
+! (foo; bar) >baz
+'