spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 1 | 1 | |
FAIL | 6 | 6 | |
total | 7 | 7 | |
case | osh | osh-cpp | description |
0 | pass | pass | TODO: SETUP should be shared |
1 | FAIL | FAIL | retrieve key |
details | details | ||
2 | FAIL | FAIL | set key |
details | details | ||
3 | FAIL | FAIL | iterate over keys |
details | details | ||
4 | FAIL | FAIL | iterate over both keys and values |
details | details | ||
5 | FAIL | FAIL | get length |
details | details | ||
6 | FAIL | FAIL | index by integer does not work |
details | details |
2 passed, 0 OK, 0 not implemented, 0 BUG, 12 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-cpp | 1 retrieve key [osh-cpp 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-cpp | 2 set key [osh-cpp 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 | 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-cpp | 3 iterate over keys [osh-cpp stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got '' [osh-cpp 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-cpp | 4 iterate over both keys and values [osh-cpp stdout] Expected u'k1: v1\nk2: v2\nk3: v3\n', got '' [osh-cpp 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 '2 2\n' stdout: 2 2stderr: |
osh-cpp | 5 get length [osh-cpp stdout] Expected '3 2\n', got '2 2\n' stdout: 2 2stderr: |
osh | 6 index by integer does not work [osh stdout] Expected "['']\n", got "['v1']\n" stdout: ['v1']stderr: |
osh-cpp | 6 index by integer does not work [osh-cpp stdout] Expected "['']\n", got "['v1']\n" stdout: ['v1']stderr: |