spec test index / oilshell.org
status | ysh | ysh-cpp | |
pass | 15 | 14 | |
FAIL | 0 | 1 | |
total | 15 | 15 | |
case | ysh | ysh-cpp | description |
0 | pass | pass | For loop over expression: List |
1 | pass | pass | For loop over expression: Dict, not BashAssoc |
2 | pass | pass | For loop over range |
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 | pass | FAIL | for x in <> { |
details |
29 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
ysh-cpp | 14 for x in <> { [ysh-cpp stdout] Expected '-1-\n-2-\n-3-\n\n0 1\n1 2\n2 3\n\nempty\ndone\n\nempty2\ndone2\n\nspace\nhi\n' Got '-1-\n-2-\n-3-\n\n\nempty\ndone\n\nempty2\ndone2\n\nspace\n' stdout: -1- -2- -3- empty done empty2 done2 spacestderr: seq 3 | for i, x in <> { ^~~ /home/uke/oil/test/../spec/testdata/ysh-for-stdin.ysh:15: errexit PID 28812: command.Simple failed with status 141 |