Results for ysh-for.test.sh

statusyshysh_ALT
pass 1313
FAIL 11
total1414
caseyshysh_ALTdescription
0pass pass For loop over expression: List
1pass pass For loop over expression: Dict, not BashAssoc
2FAIL FAIL For loop over expression: range (low priority)
detailsdetails
3pass pass Shell for loop with index (equivalent of enumerate())
4pass pass 3 indices with (mylist) is a runtime error
5pass pass Shell for loop can't have 3 indices
6pass pass Any for loop can't have 4 indiecs
7pass pass Expression for loop with index: List
8pass pass Expression for loop with index: Dict (TODO: define dict iter order)
9pass pass Dict: index key value loop (TODO: define dict iter order)
10pass pass Equivalent of zip()
11pass pass parse_bare_word eliminates confusion
12pass pass Object that's not iterable
13pass pass Oil for with brace substitution and glob
26 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

ysh2 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_ALT2 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)