Results for ysh-for.test.sh

statusyshysh-cpp
pass 143
FAIL 112
total1515
caseyshysh-cppdescription
0pass FAIL For loop over expression: list
details
1pass FAIL For loop over expression: dict
details
2FAIL FAIL For loop over expression: range (low priority)
detailsdetails
3pass FAIL Shell for loop with index (equivalent of enumerate())
details
4pass FAIL 3 indices with (mylist) is a runtime error
details
5pass pass Shell for loop can't have 3 indices
6pass pass Any for loop can't have 4 indiecs
7pass FAIL Expression for loop with index: list
details
8pass FAIL Expression for loop with index: dict (TODO: define dict iter order)
details
9pass FAIL dict: index key value loop (TODO: define dict iter order)
details
10pass FAIL Equivalent of zip()
details
11pass FAIL Iterate over shell data structures
details
12pass pass parse_bare_word eliminates confusion
13pass FAIL Object that's not iterable
details
14pass FAIL Oil for with brace substitution and glob
details
17 passed, 0 OK, 0 not implemented, 0 BUG, 13 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

ysh-cpp0 For loop over expression: list

[ysh-cpp stdout] Expected 'item 1\nitem 2\nitem 3\n', got ''

stdout:
stderr: 
ysh-cpp1 For loop over expression: dict

[ysh-cpp stdout] Expected 'key name\nkey age\n', got ''

stdout:
stderr: 
ysh2 For loop over expression: range (low priority)

[ysh stdout] Expected 'i 0\ni 1\ni 2\n', got ''
[ysh status] Expected 0, got 3

stdout:
stderr: 
  for i in (myrange) {
                   ^
[ stdin ]:2: fatal: Expected list or dict, got <type 'xrange'>
ysh-cpp2 For loop over expression: range (low priority)

[ysh-cpp stdout] Expected 'i 0\ni 1\ni 2\n', got ''

stdout:
stderr: 
ysh-cpp3 Shell for loop with index (equivalent of enumerate())

[ysh-cpp stdout] Expected '0 a\n1 b\n2 c\n', got ''
[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
    echo "$i $item"
          ^~
[ stdin ]:2: fatal: Undefined variable 'i'
ysh-cpp4 3 indices with (mylist) is a runtime error

[ysh-cpp status] Expected 2, got 0

stdout:
stderr: 
ysh-cpp7 Expression for loop with index: list

[ysh-cpp stdout] Expected '0 spam\n1 eggs\n', got ''

stdout:
stderr: 
ysh-cpp8 Expression for loop with index: dict (TODO: define dict iter order)

[ysh-cpp stdout] Expected 'pair name bob\npair age 40\n', got ''

stdout:
stderr: 
ysh-cpp9 dict: index key value loop (TODO: define dict iter order)

[ysh-cpp stdout] Expected 'entry 0 name bob\nentry 1 age 40\n', got ''

stdout:
stderr: 
ysh-cpp10 Equivalent of zip()

[ysh-cpp stdout] Expected '0 a d\n1 b e\n2 c f\n', got ''
[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
    echo "$i $item $[array[i]]"
          ^~
[ stdin ]:4: fatal: Undefined variable 'i'
ysh-cpp11 Iterate over shell data structures

[ysh-cpp stdout] Expected 'one\ntwo\nthree\n---\nk\nk2\n', got '---\n'

stdout:
---
stderr:
ysh-cpp13 Object that's not iterable

[ysh-cpp status] Expected 3, got 0

stdout:
hi
stderr:
ysh-cpp14 Oil for with brace substitution and glob

[ysh-cpp stdout] Expected '0 bar.py\n1 foo.py\n2 README.md\n3 foo.md\n', got ''
[ysh-cpp status] Expected 0, got 1

stdout:
stderr: 
    echo "$i $file"
          ^~
[ stdin ]:3: fatal: Undefined variable 'i'