spec test index / oilshell.org
| status | osh | osh-cpp | |
| pass | 8 | 8 | |
| FAIL | 1 | 1 | |
| total | 9 | 9 | |
| 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 | pass | pass | s.upper(), not s => upper() |
| 8 | FAIL | FAIL | Mutating methods must be ->, not => or . |
| details | details |
16 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| osh | 8 Mutating methods must be ->, not => or . [osh stdout] Expected '(List) ["foo","bar"]\n', got '' [osh status] Expected 0, got 1 stdout: stderr: call mylist=>append('foo')
^~~~~~
[ stdin ]:2: fatal: Undefined variable 'append'
|
| osh-cpp | 8 Mutating methods must be ->, not => or . [osh-cpp stdout] Expected '(List) ["foo","bar"]\n', got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: call mylist=>append('foo')
^~~~~~
[ stdin ]:2: fatal: Undefined variable 'append'
|