| status | ysh | ysh-cpp | |
| pass | 7 | 7 | |
| FAIL | 2 | 2 | |
| total | 9 | 9 | |
| case | ysh | ysh-cpp | description |
| 0 | FAIL | FAIL | myproc.docString() |
| details | details | ||
| 1 | FAIL | FAIL | Mutate __sh_function__ |
| details | details | ||
| 2 | pass | pass | with eval builtin command, in global scope |
| 3 | pass | pass | with eval builtin command, in local scope |
| 4 | pass | pass | with eval builtin command, reeturning Dict |
| 5 | pass | pass | with parseCommand() then io->eval(), in local scope |
| 6 | pass | pass | with parseCommand() then io->eval(cmd, vars={out_dict: {}}) |
| 7 | pass | pass | with evalToDict() |
| 8 | pass | pass | with runtime REFLECTION via __invoke__ - no parsing |
14 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| ysh | 0 myproc.docString() [ysh stdout] Expected '(Str) "YSH-style proc"\n(Null) null\n(Str) "doc \' comment with \\" quotes"\n(Null) null\n' Got '(Str) "YSH-style proc"\n(Null) null\n' [ysh status] Expected 0, got 1 stdout: (Str) "YSH-style proc" (Null) nullstderr: var f = get(__sh_function__, 'f')
^~~~~~~~~~~~~~~
[ stdin ]:6: fatal: Undefined variable '__sh_function__'
|
| ysh-cpp | 0 myproc.docString() [ysh-cpp stdout] Expected '(Str) "YSH-style proc"\n(Null) null\n(Str) "doc \' comment with \\" quotes"\n(Null) null\n' Got '(Str) "YSH-style proc"\n(Null) null\n' [ysh-cpp status] Expected 0, got 1 stdout: (Str) "YSH-style proc" (Null) nullstderr: var f = get(__sh_function__, 'f')
^~~~~~~~~~~~~~~
[ stdin ]:6: fatal: Undefined variable '__sh_function__'
|
| ysh | 1 Mutate __sh_function__ [ysh status] Expected 0, got 1 stdout: sh-funcstderr: setvar __sh_function__.f = 42
^~~~~~~~~~~~~~~
[ stdin ]:4: fatal: Undefined variable '__sh_function__'
|
| ysh-cpp | 1 Mutate __sh_function__ [ysh-cpp status] Expected 0, got 1 stdout: sh-funcstderr: setvar __sh_function__.f = 42
^~~~~~~~~~~~~~~
[ stdin ]:4: fatal: Undefined variable '__sh_function__'
|