spec test index / oilshell.org
| status | osh | |
| pass | 22 | |
| FAIL | 1 | |
| total | 23 | |
| case | osh | description |
| 0 | pass | Open proc (any number of args) |
| 1 | pass | Closed proc with no args, passed too many |
| 2 | pass | Open proc has ARGV |
| 3 | pass | Closed proc has empty "$@" or ARGV |
| 4 | pass | Proc with default args |
| 5 | pass | Proc with word params |
| 6 | pass | Proc with ... "rest" word params |
| 7 | pass | word rest params 2 |
| 8 | pass | proc with typed args |
| 9 | pass | Proc name-with-hyphen |
| 10 | pass | Proc with block arg |
| 11 | pass | proc returning wrong type |
| 12 | pass | proc returning invalid string |
| 13 | pass | 'return' doesn't accept expressions |
| 14 | FAIL | procs are in same namespace as shell functions |
| details | ||
| 15 | pass | Nested proc is disallowed at parse time |
| 16 | pass | Procs defined inside compound statements (with redefine_proc) |
| 17 | pass | Block can be passed literally, or as expression in third arg group |
| 18 | pass | Pass through all 4 kinds of args |
| 19 | pass | Global and local ARGV, like "$@" |
| 20 | pass | Mutating global ARGV |
| 21 | pass | Mutating local ARGV |
| 22 | pass | typed proc allows all kinds of args |
22 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| osh | 14 procs are in same namespace as shell functions [osh stdout] Expected 'declare -f myfunc\ndeclare -f myproc\n', got 'declare -f myfunc\n' stdout: declare -f myfuncstderr: |