Results for ysh-for.test.sh

statusysh
pass 17
FAIL 1
total18
caseyshdescription
0pass For loop over expression: List
1pass For loop over expression: Dict, not BashAssoc
2pass For loop over range
3pass Shell for loop with index (equivalent of enumerate())
4pass 3 indices with (mylist) is a runtime error
5pass Shell for loop can't have 3 indices
6pass Any for loop can't have 4 indices
7pass Expression for loop with index: List
8pass Expression for loop with index: Dict (TODO: define dict iter order)
9pass Dict: index key value loop (TODO: define dict iter order)
10pass Equivalent of zip()
11pass parse_bare_word eliminates confusion
12pass Object that's not iterable
13pass YSH for with brace substitution and glob
14pass for x in (io.stdin) {
15pass I/O error in for x in (stdin) {
16FAIL Mutating List in loop extends the loop (matches JS)
details
17pass Mutating Dict in loop does NOT extend the loop (matches JS)
17 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

ysh16 Mutating List in loop extends the loop (matches JS)

[ysh stdout] Expected '1\n2\n3\n99\n', got '1\n2\n3\n'

stdout:
1
2
3
stderr: