Results for ysh-func.test.sh

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