spec test index / oilshell.org
status | ysh | ysh_ALT | |
pass | 13 | 13 | |
FAIL | 2 | 2 | |
total | 15 | 15 | |
case | ysh | ysh_ALT | description |
0 | pass | pass | For loop over expression: List |
1 | pass | pass | For loop over expression: Dict, not BashAssoc |
2 | FAIL | FAIL | For loop over expression: range (low priority) |
details | details | ||
3 | pass | pass | Shell for loop with index (equivalent of enumerate()) |
4 | pass | pass | 3 indices with (mylist) is a runtime error |
5 | pass | pass | Shell for loop can't have 3 indices |
6 | pass | pass | Any for loop can't have 4 indiecs |
7 | pass | pass | Expression for loop with index: List |
8 | pass | pass | Expression for loop with index: Dict (TODO: define dict iter order) |
9 | pass | pass | Dict: index key value loop (TODO: define dict iter order) |
10 | pass | pass | Equivalent of zip() |
11 | pass | pass | parse_bare_word eliminates confusion |
12 | pass | pass | Object that's not iterable |
13 | pass | pass | YSH for with brace substitution and glob |
14 | FAIL | FAIL | for x in <> { |
details | details |
26 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 2 failed under osh
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 2 stdout: stderr: var myrange = 0:3 ^ [ stdin ]:1: Syntax error in expression (near Id.Arith_Colon) |
ysh_ALT | 2 For loop over expression: range (low priority) [ysh_ALT stdout] Expected 'i 0\ni 1\ni 2\n', got '' [ysh_ALT status] Expected 0, got 2 stdout: stderr: var myrange = 0:3 ^ [ stdin ]:1: Syntax error in expression (near Id.Arith_Colon) |
ysh | 14 for x in <> { [ysh stdout] Expected '-1-\n-2-\n-3-\n0 1\n1 2\n2 3\n', got '' [ysh status] Expected 0, got 2 stdout: stderr: seq 3 | for x in <> { ^~ [ stdin ]:1: TODO |
ysh_ALT | 14 for x in <> { [ysh_ALT stdout] Expected '-1-\n-2-\n-3-\n0 1\n1 2\n2 3\n', got '' [ysh_ALT status] Expected 0, got 2 stdout: stderr: seq 3 | for x in <> { ^~ [ stdin ]:1: TODO |