Results for ysh-proc.test.sh

statusosh
pass 36
total36
caseoshdescription
0pass Open proc (any number of args)
1pass Closed proc with no args, passed too many
2pass Open proc has ARGV
3pass Closed proc has empty "$@" or ARGV
4pass Proc with default args
5pass Proc with word params
6pass Proc with ... "rest" word params
7pass word rest params 2
8pass proc with typed args
9pass Proc name-with-hyphen
10pass Proc with block arg
11pass proc returning wrong type
12pass proc returning invalid string
13pass 'return' doesn't accept expressions
14pass procs are in same namespace as variables
15pass Nested proc is allowed
16pass Procs defined inside compound statements
17pass Block can be passed literally, or as expression in third arg group
18pass Pass through all 4 kinds of args
19pass Global and local ARGV, like "$@"
20pass Mutating global ARGV
21pass Mutating local ARGV
22pass typed proc allows all kinds of args
23pass can unset procs without -f
24pass procs shadow sh-funcs
25pass first word skips non-proc variables
26pass proc resolution changes with the local scope
27pass procs are defined in local scope
28pass declare -f -F only prints shell functions
29pass compgen -A function shows user-defined invokables - shell funcs, Proc, Obj
30pass type / type -a builtin on invokables - shell func, proc, invokable
31pass invokable Obj that doesn't declare self
32pass invokable Obj is called with self
33pass invokable Obj with more typed args
34pass two different objects can share the same __invoke__
35pass Stateful proc with counter
36 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped