spec test index / oilshell.org
| status | osh | |
| pass | 12 | |
| FAIL | 4 | |
| total | 16 | |
| case | osh | description |
| 0 | pass | cd with block |
| 1 | pass | cd with block: fatal error in block |
| 2 | pass | cd with block: return in block |
| 3 | pass | cd with block: break in block |
| 4 | pass | cd with block exits with status 0 |
| 5 | pass | block doesn't have its own scope |
| 6 | FAIL | block literal in expression mode: ^(echo $PWD) |
| details | ||
| 7 | FAIL | block arg as typed expression |
| details | ||
| 8 | pass | Pass invalid typed args |
| 9 | pass | 'builtin' and 'command' with block |
| 10 | pass | Consistency: Control Flow and Blocks |
| 11 | pass | Consistency: Exit Status and Blocks |
| 12 | pass | Consistency: Unwanted Blocks Are Errors |
| 13 | pass | Block with Bare Assignments |
| 14 | FAIL | Block param binding |
| details | ||
| 15 | FAIL | Proc that doesn't take a block |
| details |
12 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
| osh | 6 block literal in expression mode: ^(echo $PWD) [osh stdout] Expected 'one\ntwo\n', got "(Str) 'TODO: value.Block'\n(Str) 'TODO: value.Block'\n" stdout: (Str) 'TODO: value.Block' (Str) 'TODO: value.Block'stderr: |
| osh | 7 block arg as typed expression [osh stdout] Expected '/tmp\n/tmp\n', got '/tmp\n' [osh status] Expected 0, got 2 stdout: /tmpstderr: cd /tmp (myblock)
^
[ stdin ]:6: 'cd' Expected block argument
cd /tmp (myblock)
^~
[ stdin ]:6: errexit PID 5346: Command failed with status 2
|
| osh | 14 Block param binding [osh status] Expected 0, got 1 stdout: stderr: = b
^
[ stdin ]:4: fatal: Undefined variable 'b'
|
| osh | 15 Proc that doesn't take a block [osh stdout] Expected 'status=1\n', got 'task name=foo\nstatus=0\n' stdout: task name=foo status=0stderr: |