spec test index / oilshell.org
status | osh | |
pass | 11 | |
FAIL | 3 | |
total | 14 | |
case | osh | description |
0 | pass | precedence of 1:3 vs comparison |
1 | pass | precedence of 1:3 vs bitwise operator |
2 | pass | subscript and slice :| 1 2 3 4 | |
3 | FAIL | Range end points can be int-looking Strings |
details | ||
4 | FAIL | Slice indices can be int-looking strings |
details | ||
5 | pass | slice subscripts are adjusted like Python |
6 | pass | subscript and slice of List |
7 | pass | expressions and negative indices |
8 | pass | Index with expression |
9 | pass | Copy with a[:] |
10 | pass | Iterate over range |
11 | pass | Loops over bogus ranges terminate |
12 | FAIL | Slices with Multiple Dimensions (for TSV8?) |
details | ||
13 | pass | Closed ranges |
11 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
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 stdout: stderr: pp test_ (list('3' ..< '6')) ^~~ [ stdin ]:1: fatal: Integer too big: 3 |
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 stdout: stderr: pp test_ (a['3': '6']) ^ [ stdin ]:3: fatal: Integer too big: 3 |
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 stdout: stderr: qtt pretty :mytable <<< ''' ^~~ [ stdin ]:1: 'qtt' not found (OILS-ERR-100) var t1 = mytable[2:, :] ^~~~~~~ [ stdin ]:8: fatal: Undefined variable 'mytable' |