Results for ysh-for.test.sh

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

Details on runs that didn't PASS

ysh0 For loop over expression: List

[ysh stdout] Expected 'item 1\nitem 2\nitem 3\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh1 For loop over expression: Dict, not BashAssoc

[ysh stdout] Expected 'key name\nkey age\n', got ''
[ysh status] Expected 3, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh2 For loop over range

[ysh stdout] Expected 'i 0\ni 1\ni 2\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh3 Shell for loop with index (equivalent of enumerate())

[ysh stdout] Expected '0 a\n1 b\n2 c\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh4 3 indices with (mylist) is a runtime error

[ysh status] Expected 2, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh5 Shell for loop can't have 3 indices

[ysh status] Expected 2, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh6 Any for loop can't have 4 indiecs

[ysh status] Expected 2, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh7 Expression for loop with index: List

[ysh stdout] Expected '0 spam\n1 eggs\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh8 Expression for loop with index: Dict (TODO: define dict iter order)

[ysh stdout] Expected 'pair name bob\npair age 40\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh9 Dict: index key value loop (TODO: define dict iter order)

[ysh stdout] Expected 'entry 0 name bob\nentry 1 age 40\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh10 Equivalent of zip()

[ysh stdout] Expected '0 a d\n1 b e\n2 c f\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh11 parse_bare_word eliminates confusion

[ysh status] Expected 2, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh12 Object that's not iterable

[ysh stdout] Expected 'hi\n', got ''
[ysh status] Expected 3, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh13 YSH for with brace substitution and glob

[ysh stdout] Expected '0 bar.py\n1 foo.py\n2 README.md\n3 foo.md\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh14 for x in (io.stdin) {

[ysh 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 ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
ysh15 I/O error in for x in (stdin) {

[ysh stdout] Expected 'pass\n', got ''
[ysh status] Expected 0, got 1
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_