1
0
mirror of https://github.com/sstephenson/bats.git synced 2026-02-27 10:08:11 +01:00

Warn about bare [[ ... ]] expressions

This commit is contained in:
Sam Stephenson
2014-06-02 21:00:46 -05:00
parent 49f533e4a7
commit bea06b9825
3 changed files with 91 additions and 5 deletions

15
test/fixtures/bats/double_brackets.bats vendored Normal file
View File

@@ -0,0 +1,15 @@
@test "bare" {
[[ 1 = 1 ]]
}
@test "chained" {
[[ 1 = 1 ]] || true
}
@test "if" {
if [[ 1 = 1 ]]; then
true
else
false
fi
}