diff options
Diffstat (limited to 't/chainlint/arithmetic-expansion.test')
-rw-r--r-- | t/chainlint/arithmetic-expansion.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/chainlint/arithmetic-expansion.test b/t/chainlint/arithmetic-expansion.test new file mode 100644 index 0000000000..7b4c5c9a41 --- /dev/null +++ b/t/chainlint/arithmetic-expansion.test @@ -0,0 +1,13 @@ +test_expect_success 'arithmetic-expansion' ' +( + foo && +# LINT: closing ")" of $((...)) not misinterpreted as subshell-closing ")" + bar=$((42 + 1)) && + baz +) && +( +# LINT: missing "&&" on $((...)) + bar=$((42 + 1)) + baz +) +' |