spec test index / oilshell.org
| status | osh | osh-cpp | |
| pass | 9 | 9 | |
| FAIL | 1 | 1 | |
| total | 10 | 10 | |
| case | osh | osh-cpp | description |
| 0 | pass | pass | oil:upgrade as alias for ysh:upgrade |
| 1 | pass | pass | %() array literal |
| 2 | pass | pass | _match() instead of _group() |
| 3 | pass | pass | _status instead of _error.code |
| 4 | pass | pass | source ///osh/two.sh rather than source --builtin osh/two.sh |
| 5 | pass | pass | OILS_VERSION, not OIL_VERSION |
| 6 | pass | pass | stdin is now io.stdin |
| 7 | FAIL | FAIL | Old _io builtin |
| details | details | ||
| 8 | pass | pass | s.upper(), not s => upper() |
| 9 | pass | pass | Mutating methods must be ->, not => or . |
18 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| osh | 7 Old _io builtin [osh stdout] Expected 'hi\n', got '' [osh status] Expected 0, got 1 stdout: stderr: echo $[_io=>captureStdout(^(echo hi))]
^~~~~~~~~~~~~
[ stdin ]:1: fatal: Undefined variable 'captureStdout'
|
| osh-cpp | 7 Old _io builtin [osh-cpp stdout] Expected 'hi\n', got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: echo $[_io=>captureStdout(^(echo hi))]
^~~~~~~~~~~~~
[ stdin ]:1: fatal: Undefined variable 'captureStdout'
|