You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 29, 2021. It is now read-only.
Here follows a bats that fails. First run passes,not the second.
loop_func() {
local search="none one two tree"local d
fordin$search;doecho$ddone
}
@test "loop_func" {
run loop_func
[[ "${lines[3]}"=='tree' ]]
run loop_func
[[ "${lines[2]}"=='two' ]]
}
outputs:
bats loop.bats
✗ loop_func
(in test file loop.bats, line 14)
`[[ "${lines[2]}" == 'two' ]]' failed
1 test, 1 failure