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:
15
test/fixtures/bats/double_brackets.bats
vendored
Normal file
15
test/fixtures/bats/double_brackets.bats
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
@test "bare" {
|
||||
[[ 1 = 1 ]]
|
||||
}
|
||||
|
||||
@test "chained" {
|
||||
[[ 1 = 1 ]] || true
|
||||
}
|
||||
|
||||
@test "if" {
|
||||
if [[ 1 = 1 ]]; then
|
||||
true
|
||||
else
|
||||
false
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user