Closed stefanlasiewski closed 2 years ago
Reading the other examples I understand why you eypect These examples to show failures too. I think it would be sufficient to use something like [ 1 -eq 2 ]
to showcase a guaranteed failure.
I opted for not using -eq because that is assert_equal
territory.
Thanks Martin!
https://github.com/bats-core/bats-assert#assert and https://github.com/bats-core/bats-assert#refute both appear incorrect.
The docs say this
assert
example should fail, but it actually succeeds:Same with the
refute
example:But in reality, they both succeed: