mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-18 16:27:52 +00:00
19 lines
291 B
Plaintext
19 lines
291 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
cd "${0%/*}" || exit 1
|
||
|
. ../run-tests
|
||
|
|
||
|
failFunction() {
|
||
|
false
|
||
|
}
|
||
|
arguments=(--fail-on-function)
|
||
|
returnCode=1
|
||
|
|
||
|
template="Fail on function? {{failFunction}}"
|
||
|
expected() {
|
||
|
cat <<EOF
|
||
|
ERROR: Function 'failFunction' with args () failed with status code 1
|
||
|
EOF
|
||
|
}
|
||
|
|
||
|
runTest
|