spec test index / oilshell.org
status | ysh | ysh-cpp | |
pass | 14 | 3 | |
FAIL | 1 | 12 | |
total | 15 | 15 | |
case | ysh | ysh-cpp | description |
0 | pass | FAIL | For loop over expression: list |
details | |||
1 | pass | FAIL | For loop over expression: dict |
details | |||
2 | FAIL | FAIL | For loop over expression: range (low priority) |
details | details | ||
3 | pass | FAIL | Shell for loop with index (equivalent of enumerate()) |
details | |||
4 | pass | FAIL | 3 indices with (mylist) is a runtime error |
details | |||
5 | pass | pass | Shell for loop can't have 3 indices |
6 | pass | pass | Any for loop can't have 4 indiecs |
7 | pass | FAIL | Expression for loop with index: list |
details | |||
8 | pass | FAIL | Expression for loop with index: dict (TODO: define dict iter order) |
details | |||
9 | pass | FAIL | dict: index key value loop (TODO: define dict iter order) |
details | |||
10 | pass | FAIL | Equivalent of zip() |
details | |||
11 | pass | FAIL | Iterate over shell data structures |
details | |||
12 | pass | pass | parse_bare_word eliminates confusion |
13 | pass | FAIL | Object that's not iterable |
details | |||
14 | pass | FAIL | Oil for with brace substitution and glob |
details |
17 passed, 0 OK, 0 not implemented, 0 BUG, 13 failed, 0 timeouts, 0 cases skipped
ysh-cpp | 0 For loop over expression: list [ysh-cpp stdout] Expected 'item 1\nitem 2\nitem 3\n', got '' stdout: stderr: |
ysh-cpp | 1 For loop over expression: dict [ysh-cpp stdout] Expected 'key name\nkey age\n', got '' stdout: stderr: |
ysh | 2 For loop over expression: range (low priority) [ysh stdout] Expected 'i 0\ni 1\ni 2\n', got '' [ysh status] Expected 0, got 3 stdout: stderr: for i in (myrange) { ^ [ stdin ]:2: fatal: Expected list or dict, got <type 'xrange'> |
ysh-cpp | 2 For loop over expression: range (low priority) [ysh-cpp stdout] Expected 'i 0\ni 1\ni 2\n', got '' stdout: stderr: |
ysh-cpp | 3 Shell for loop with index (equivalent of enumerate()) [ysh-cpp stdout] Expected '0 a\n1 b\n2 c\n', got '' [ysh-cpp status] Expected 0, got 1 stdout: stderr: echo "$i $item" ^~ [ stdin ]:2: fatal: Undefined variable 'i' |
ysh-cpp | 4 3 indices with (mylist) is a runtime error [ysh-cpp status] Expected 2, got 0 stdout: stderr: |
ysh-cpp | 7 Expression for loop with index: list [ysh-cpp stdout] Expected '0 spam\n1 eggs\n', got '' stdout: stderr: |
ysh-cpp | 8 Expression for loop with index: dict (TODO: define dict iter order) [ysh-cpp stdout] Expected 'pair name bob\npair age 40\n', got '' stdout: stderr: |
ysh-cpp | 9 dict: index key value loop (TODO: define dict iter order) [ysh-cpp stdout] Expected 'entry 0 name bob\nentry 1 age 40\n', got '' stdout: stderr: |
ysh-cpp | 10 Equivalent of zip() [ysh-cpp stdout] Expected '0 a d\n1 b e\n2 c f\n', got '' [ysh-cpp status] Expected 0, got 1 stdout: stderr: echo "$i $item $[array[i]]" ^~ [ stdin ]:4: fatal: Undefined variable 'i' |
ysh-cpp | 11 Iterate over shell data structures [ysh-cpp stdout] Expected 'one\ntwo\nthree\n---\nk\nk2\n', got '---\n' stdout: ---stderr: |
ysh-cpp | 13 Object that's not iterable [ysh-cpp status] Expected 3, got 0 stdout: histderr: |
ysh-cpp | 14 Oil for with brace substitution and glob [ysh-cpp stdout] Expected '0 bar.py\n1 foo.py\n2 README.md\n3 foo.md\n', got '' [ysh-cpp status] Expected 0, got 1 stdout: stderr: echo "$i $file" ^~ [ stdin ]:3: fatal: Undefined variable 'i' |