spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 1 | 1 | 1 | |
FAIL | 6 | 6 | 6 | |
total | 7 | 7 | 7 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | TODO: SETUP should be shared |
1 | FAIL | FAIL | FAIL | retrieve key |
details | details | details | ||
2 | FAIL | FAIL | FAIL | set key |
details | details | details | ||
3 | FAIL | FAIL | FAIL | iterate over keys |
details | details | details | ||
4 | FAIL | FAIL | FAIL | iterate over both keys and values |
details | details | details | ||
5 | FAIL | FAIL | FAIL | get length |
details | details | details | ||
6 | FAIL | FAIL | FAIL | index by integer does not work |
details | details | details |
3 passed, 0 OK, 0 not implemented, 0 BUG, 18 failed, 0 timeouts, 0 cases skipped 6 failed under osh
osh | 1 retrieve key [osh stdout] Expected 'b\n', got 'aa\n' stdout: aastderr: |
osh_.py | 1 retrieve key [osh_.py stdout] Expected 'b\n', got 'aa\n' stdout: aastderr: |
osh_.cc | 1 retrieve key [osh_.cc stdout] Expected 'b\n', got 'aa\n' stdout: aastderr: |
osh | 2 set key [osh stdout] Expected "['bar', 'b', 'c', 'XX']\n", got "['XX', 'b', 'foo', 'bar', 'a+1', 'c']\n" stdout: ['XX', 'b', 'foo', 'bar', 'a+1', 'c']stderr: |
osh_.py | 2 set key [osh_.py stdout] Expected "['bar', 'b', 'c', 'XX']\n", got "['XX', 'b', 'foo', 'bar', 'a+1', 'c']\n" stdout: ['XX', 'b', 'foo', 'bar', 'a+1', 'c']stderr: |
osh_.cc | 2 set key [osh_.cc stdout] Expected "['bar', 'b', 'c', 'XX']\n", got "(cmd_value.Argv argv:[argv.py XX b foo bar 'a+1' c] arg_spids:[30 32 32 32 32 32 32])\n" stdout: (cmd_value.Argv argv:[argv.py XX b foo bar 'a+1' c] arg_spids:[30 32 32 32 32 32 32])stderr: Unhandled SimpleCommand |
osh | 3 iterate over keys [osh stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got '' [osh status] Expected 0, got 2 stdout: stderr: for k in "${(@k)assoc}"; do ^ [ stdin ]:3: Unexpected token in ${} |
osh_.py | 3 iterate over keys [osh_.py stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got '' [osh_.py status] Expected 0, got 2 stdout: stderr: for k in "${(@k)assoc}"; do ^ [ stdin ]:3: Unexpected token in ${} |
osh_.cc | 3 iterate over keys [osh_.cc stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got '' [osh_.cc status] Expected 0, got 2 stdout: stderr: for k in "${(@k)assoc}"; do ^ [ stdin ]:3: Unexpected token in ${} |
osh | 4 iterate over both keys and values [osh stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got '' [osh status] Expected 0, got 2 stdout: stderr: for k v ("${(@kv)assoc}"); do ^ [ stdin ]:3: Unexpected word after for loop variable |
osh_.py | 4 iterate over both keys and values [osh_.py stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got '' [osh_.py status] Expected 0, got 2 stdout: stderr: for k v ("${(@kv)assoc}"); do ^ [ stdin ]:3: Unexpected word after for loop variable |
osh_.cc | 4 iterate over both keys and values [osh_.cc stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got '' [osh_.cc status] Expected 0, got 2 stdout: stderr: for k v ("${(@kv)assoc}"); do ^ [ stdin ]:3: Unexpected word after for loop variable |
osh | 5 get length [osh stdout] Expected '3 2\n', got '' [osh status] Expected 0, got 1 stdout: stderr: echo ${#assoc} ${#assoc[k1]} ^~ [ stdin ]:3: fatal: Array 'assoc' can't be referred to as a scalar (without @ or *) |
osh_.py | 5 get length [osh_.py stdout] Expected '3 2\n', got '' [osh_.py status] Expected 0, got 1 stdout: stderr: echo ${#assoc} ${#assoc[k1]} ^~ [ stdin ]:3: fatal: Array 'assoc' can't be referred to as a scalar (without @ or *) |
osh_.cc | 5 get length [osh_.cc stdout] Expected '3 2\n', got '' [osh_.cc status] Expected 0, got 1 stdout: stderr: echo ${#assoc} ${#assoc[k1]} ^~~~ [ stdin ]:3: fatal: Array 'assoc' can't be referred to as a scalar (without @ or *) |
osh | 6 index by integer does not work [osh stdout] Expected "['']\n", got "['v1']\n" stdout: ['v1']stderr: |
osh_.py | 6 index by integer does not work [osh_.py stdout] Expected "['']\n", got "['v1']\n" stdout: ['v1']stderr: |
osh_.cc | 6 index by integer does not work [osh_.cc stdout] Expected "['']\n", got '(cmd_value.Argv argv:[argv.py v1] arg_spids:[21 23])\n' stdout: (cmd_value.Argv argv:[argv.py v1] arg_spids:[21 23])stderr: Unhandled SimpleCommand |