ysh-func () { run-file ysh-func "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" } ysh-func: spec test case results

Results for ysh-func.test.sh

statusyshysh_ALT
pass 3030
total3030
caseyshysh_ALTdescription
0pass pass Identity function
1pass pass Too many args
2pass pass Too few args
3pass pass Positional args
4pass pass named args
5pass pass Named args with ...rest
6pass pass Spread/splat of named args: f(...more)
7pass pass Multiple spreads
8pass pass Proc-style return in a func is error
9pass pass Typed return in a proc is error
10pass pass Redefining functions is not allowed (with shopt -u redefine_proc_func)
11pass pass Redefining functions is allowed (with shopt -s redefine_proc_func)
12pass pass Functions cannot redefine readonly vars (even with shopt -s redefine_proc_func)
13pass pass Functions can redefine non-readonly vars
14pass pass Vars cannot redefine functions (even with shopt -s redefine_proc_func)
15pass pass Multiple func calls
16pass pass Undefined var in function
17pass pass Param binding semantics
18pass pass Recursive functions
19pass pass Recursive functions with LRU Cache
20pass pass Varadic arguments, no other args
21pass pass Varadic arguments, other args
22pass pass Varadic arguments, too few args
23pass pass Userland max
24pass pass Functions share a namespace with variables
25pass pass We can store funcs in dictionaries
26pass pass Functions cannot be nested
27pass pass Functions can be shadowed
28pass pass Function names cannot be redeclared
29pass pass Functions cannot be mutated
60 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped