Skip to content

Commit d22dc6a

Browse files
committed
feat!: failing test case
1 parent eef9aea commit d22dc6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_cli.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ EOF
4545
)"
4646
}
4747

48+
test_exit_code_not_0_in_case_of_non_zero_exit_code_followed_by_zero_exit_code() {
49+
assert_fails "$BASH_UNIT <($CAT << EOF
50+
function test_fails() { false ; true ; }
51+
EOF
52+
)"
53+
}
54+
4855
test_run_all_file_parameters() {
4956
bash_unit_output=$($BASH_UNIT \
5057
<(echo "test_one() { echo -n ; }") \

0 commit comments

Comments
 (0)