| status | ysh | ysh-cpp | |
| pass | 3 | 2 | |
| FAIL | 1 | 2 | |
| total | 4 | 4 | |
| case | ysh | ysh-cpp | description |
| 0 | pass | pass | Command.sourceCode() on literal block: p { echo hi } |
| 1 | pass | FAIL | Command.sourceCode() on Expr: ^(echo 1; echo 2) |
| details | |||
| 2 | pass | pass | Command.sourceCode() works with reparsing, e.g. backticks |
| 3 | FAIL | FAIL | Command.sourceCode() works in nested blocks |
| details | details |
5 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| ysh-cpp | 1 Command.sourceCode() on Expr: ^(echo 1; echo 2) [ysh-cpp stdout] Expected '<Command>\n' Got '' [ysh-cpp status] Expected 0 Got 2 stdout: stderr: var cmd = ^(echo 1; echo 2; false)
^
[ stdin ]:1: Invalid word while parsing command list
|
| ysh | 3 Command.sourceCode() works in nested blocks [ysh stdout] Expected '' Got '(Str) " \\n echo foo\\n"\nfoo\n(Str) " \\n echo foo\\n p { \\n echo inner\\n }\\n"\nfoo\n(Str) " \\n echo inner\\n "\ninner\n' stdout: (Str) " \n echo foo\n"
foo
(Str) " \n echo foo\n p { \n echo inner\n }\n"
foo
(Str) " \n echo inner\n "
inner
stderr: |
| ysh-cpp | 3 Command.sourceCode() works in nested blocks [ysh-cpp stdout] Expected '' Got '(Str) " \\n echo foo\\n"\nfoo\n(Str) " \\n echo foo\\n p { \\n echo inner\\n }\\n"\nfoo\n(Str) " \\n echo inner\\n "\ninner\n' stdout: (Str) " \n echo foo\n"
foo
(Str) " \n echo foo\n p { \n echo inner\n }\n"
foo
(Str) " \n echo inner\n "
inner
stderr: |