summaryrefslogtreecommitdiff
path: root/t/chainlint/negated-one-liner.test
blob: 30f4cc5a9b21f94b3d5b78c7fc57e7b141947088 (plain)
1
2
3
4
5
6
7
8
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
'