spec test index / oilshell.org
status | ysh | |
FAIL | 16 | |
total | 16 | |
case | ysh | description |
0 | FAIL | For loop over expression: List |
details | ||
1 | FAIL | For loop over expression: Dict, not BashAssoc |
details | ||
2 | FAIL | For loop over range |
details | ||
3 | FAIL | Shell for loop with index (equivalent of enumerate()) |
details | ||
4 | FAIL | 3 indices with (mylist) is a runtime error |
details | ||
5 | FAIL | Shell for loop can't have 3 indices |
details | ||
6 | FAIL | Any for loop can't have 4 indiecs |
details | ||
7 | FAIL | Expression for loop with index: List |
details | ||
8 | FAIL | Expression for loop with index: Dict (TODO: define dict iter order) |
details | ||
9 | FAIL | Dict: index key value loop (TODO: define dict iter order) |
details | ||
10 | FAIL | Equivalent of zip() |
details | ||
11 | FAIL | parse_bare_word eliminates confusion |
details | ||
12 | FAIL | Object that's not iterable |
details | ||
13 | FAIL | YSH for with brace substitution and glob |
details | ||
14 | FAIL | for x in (io.stdin) { |
details | ||
15 | FAIL | 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
ysh | 0 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_ |
ysh | 1 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_ |
ysh | 2 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_ |
ysh | 3 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_ |
ysh | 4 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_ |
ysh | 5 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_ |
ysh | 6 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_ |
ysh | 7 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_ |
ysh | 8 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_ |
ysh | 9 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_ |
ysh | 10 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_ |
ysh | 11 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_ |
ysh | 12 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_ |
ysh | 13 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_ |
ysh | 14 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_ |
ysh | 15 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_ |