ysh-for () { run-file ysh-for "$@" } run-file () { local spec_name=$1; shift; sh-spec spec/$spec_name.test.sh --compare-shells --oils-bin-dir $PWD/bin "$@" }
spec test index / oilshell.org
| status | ysh | |
| pass | 16 | |
| total | 16 | |
| case | ysh | description |
| 0 | pass | For loop over expression: List |
| 1 | pass | For loop over expression: Dict, not BashAssoc |
| 2 | pass | For loop over range |
| 3 | pass | Shell for loop with index (equivalent of enumerate()) |
| 4 | pass | 3 indices with (mylist) is a runtime error |
| 5 | pass | Shell for loop can't have 3 indices |
| 6 | pass | Any for loop can't have 4 indiecs |
| 7 | pass | Expression for loop with index: List |
| 8 | pass | Expression for loop with index: Dict (TODO: define dict iter order) |
| 9 | pass | Dict: index key value loop (TODO: define dict iter order) |
| 10 | pass | Equivalent of zip() |
| 11 | pass | parse_bare_word eliminates confusion |
| 12 | pass | Object that's not iterable |
| 13 | pass | YSH for with brace substitution and glob |
| 14 | pass | for x in <> { |
| 15 | pass | I/O error in for x in <> { |
16 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped