tests
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
@test "a complex failing test" {
|
||||
echo 123
|
||||
run bats "$BATS_TEST_DIRNAME/failing.bats"
|
||||
[ $status -eq 0 ]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
fun() {
|
||||
echo "$1"
|
||||
if [[ $1 -gt 0 ]]; then
|
||||
fun $(($1 - 1))
|
||||
fi
|
||||
}
|
||||
|
||||
@test "a recursive failing test" {
|
||||
echo Outer
|
||||
fun 2
|
||||
run fun 2
|
||||
false
|
||||
}
|
||||
Reference in New Issue
Block a user