spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 14 | 14 | 13 | |
ok | 1 | 1 | 1 | |
FAIL | 0 | 0 | 1 | |
total | 15 | 15 | 15 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | (( )) result |
1 | pass | pass | pass | negative number is true |
2 | pass | pass | pass | (( )) in if statement |
3 | pass | pass | pass | (( )) |
4 | pass | pass | pass | (( )) with arrays |
5 | pass | pass | pass | (( )) with error |
6 | pass | pass | pass | bash and mksh: V in (( a[K] = V )) gets coerced to integer |
7 | ok | ok | ok | bash: K in (( A[K] = V )) is a constant string |
details | details | details | ||
8 | pass | pass | pass | BUG: (( V = A[K] )) doesn't retrieve the right value |
9 | pass | pass | pass | bash: V in (( A["K"] = V )) gets coerced to integer |
10 | pass | pass | pass | literal strings inside (( )) |
11 | pass | pass | FAIL | (( )) with redirect |
details | ||||
12 | pass | pass | pass | Can't make assign whole array to var (( b = a )) |
13 | pass | pass | pass | set associative array |
14 | pass | pass | pass | Example of incrementing associative array entry with var key (ble.sh) |
41 passed, 3 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
osh | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: (( A[K] = V )) ^~ [ stdin ]:4: fatal: Associative array keys must be strings: $x 'x' "$x" etc. |
osh_.py | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: (( A[K] = V )) ^~ [ stdin ]:4: fatal: Associative array keys must be strings: $x 'x' "$x" etc. |
osh_.cc | 7 bash: K in (( A[K] = V )) is a constant string stdout: stderr: (( A[K] = V )) ^~ [ stdin ]:4: fatal: Associative array keys must be strings: $x 'x' "$x" etc. dumb_alloc: gNumNew = 1824 gNumDelete = 138 gMemPos = 63664 gNumMalloc = 45 gNumFree = 0 gMemPos2 = 9904 |
osh_.cc | 11 (( )) with redirect [osh_.cc stdout] Expected '52\n--\nSTDERR\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |