spec test index / oilshell.org
status | osh | |
FAIL | 14 | |
total | 14 | |
case | osh | description |
0 | FAIL | precedence of 1:3 vs comparison |
details | ||
1 | FAIL | precedence of 1:3 vs bitwise operator |
details | ||
2 | FAIL | subscript and slice :| 1 2 3 4 | |
details | ||
3 | FAIL | Range end points can be int-looking Strings |
details | ||
4 | FAIL | Slice indices can be int-looking strings |
details | ||
5 | FAIL | slice subscripts are adjusted like Python |
details | ||
6 | FAIL | subscript and slice of List |
details | ||
7 | FAIL | expressions and negative indices |
details | ||
8 | FAIL | Index with expression |
details | ||
9 | FAIL | Copy with a[:] |
details | ||
10 | FAIL | Iterate over range |
details | ||
11 | FAIL | Loops over bogus ranges terminate |
details | ||
12 | FAIL | Slices with Multiple Dimensions (for TSV8?) |
details | ||
13 | FAIL | Closed ranges |
details |
0 passed, 0 OK, 0 not implemented, 0 BUG, 14 failed, 0 timeouts, 0 cases skipped 14 failed under osh
osh | 0 precedence of 1:3 vs comparison [osh stdout] Expected '(Range 1 ..< 3)\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 1 precedence of 1:3 vs bitwise operator [osh stdout] Expected '(Range 3 ..< 7)\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 2 subscript and slice :| 1 2 3 4 | [osh stdout] Expected '(Str) "2"\n(List) ["2","3"]\nimplicit\n(List) ["1","2"]\n(List) ["3","4"]\nout of bounds\n(List) ["1","2","3","4"]\n(List) ["1","2","3","4"]\n' Got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 3 Range end points can be int-looking Strings [osh stdout] Expected '(List) [3,4,5]\n(List) [5,6]\n(List) [3,4]\n(List) [-5,-4]\n(List) [-7,-6]\n' Got '' [osh status] Expected 3, got 1 [osh 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_ |
osh | 4 Slice indices can be int-looking strings [osh stdout] Expected '(List) [3,4,5]\n(List) [5,6]\n(List) [3,4]\n(List) [5,6]\n(List) [3,4]\n' Got '' [osh status] Expected 3, got 1 [osh 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_ |
osh | 5 slice subscripts are adjusted like Python [osh stdout] Expected '[2,3]\n[2,3]\n\n[2,3,4,5]\n[2,3,4,5]\n\n[]\n[]\n\n[2,3,4]\n[2,3,4]\n\n[3,4]\n[3,4]\n\n[1,2,3,4]\n[1,2,3,4]\n\n[]\n[]\n\n[5]\n[5]\n\n' Got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 6 subscript and slice of List [osh stdout] Expected '(Int) 2\n(List) [2,3]\nimplicit\n(List) [1,2]\n(List) [3,4]\n' Got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 7 expressions and negative indices [osh stdout] Expected '(Str) "5"\n(List) ["2","3"]\nimplicit\n(List) ["1","2","3"]\n(List) ["4","5"]\n' Got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 8 Index with expression [osh stdout] Expected '3\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 9 Copy with a[:] [osh stdout] Expected '(List) [1,2,3]\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 10 Iterate over range [osh stdout] Expected '1\n2\n3\n4\n0, 1\n1, 2\n2, 3\n', got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 11 Loops over bogus ranges terminate [osh status] Expected 0, got 1 [osh 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_ |
osh | 12 Slices with Multiple Dimensions (for TSV8?) [osh stdout] Expected "(Str) 'TODO: Table Slicing'\n(Str) 'TODO: Table Slicing'\n" Got '' [osh status] Expected 0, got 1 [osh 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_ |
osh | 13 Closed ranges [osh stdout] Expected '1\n2\n(Range 1 ..< 3)\n', got '' [osh status] Expected 0, got 1 [osh 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_ |