fix return 0 show error_box

This commit is contained in:
pvincent
2026-08-07 18:49:40 +04:00
parent 5e283e63dd
commit 3f56f022e4
7 changed files with 67 additions and 8 deletions
+1
View File
@@ -119,6 +119,7 @@ TIMEFORMAT=$'\nelapsed: %Rs'
time {
assert success
assert exit_0
assert return_conditional
assert_grep success_with_args 'count args: 2' -- 'A B' C
fail_type subshell_term SUBSHELL_ERROR
+9
View File
@@ -58,6 +58,15 @@ function do_return {
should_return
}
function do_return_conditional {
if call_function_which_will_return; then
echo SHOULD NOT APPEAR
else
echo return is: $?
fi
echo SUCCESS
}
function do_unbound_associative {
declare -A associative
associative['A']='Abc'