spec test index / oilshell.org
status | osh | osh-cpp | |
pass | 9 | 0 | |
FAIL | 2 | 11 | |
total | 11 | 11 | |
case | osh | osh-cpp | description |
0 | pass | FAIL | ranges have higher precedence than comparison (disabled) |
details | |||
1 | pass | FAIL | ranges have lower precedence than bitwise operators |
details | |||
2 | pass | FAIL | subscript and range of array |
details | |||
3 | pass | FAIL | subscript and range of list |
details | |||
4 | pass | FAIL | expressions and negative indices |
details | |||
5 | pass | FAIL | Explicit slice with step |
details | |||
6 | pass | FAIL | Index with expression |
details | |||
7 | pass | FAIL | Copy wtih a[:] |
details | |||
8 | FAIL | FAIL | Slices with Multiple Dimensions (for QTT) |
details | details | ||
9 | FAIL | FAIL | Index a list with a range, not a slice. TODO: Figure out semantics |
details | details | ||
10 | pass | FAIL | Range with list constructor |
details |
9 passed, 0 OK, 0 not implemented, 0 BUG, 13 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh-cpp | 0 ranges have higher precedence than comparison (disabled) [osh-cpp stdout] Expected '(xrange) xrange(1, 3)\n', got '' stdout: stderr: |
osh-cpp | 1 ranges have lower precedence than bitwise operators [osh-cpp stdout] Expected '(xrange) xrange(3, 7)\n', got '' stdout: stderr: |
osh-cpp | 2 subscript and range of array [osh-cpp stdout] Expected "(Str) '2'\n(List) ['2', '3']\nimplicit\n(List) ['1', '2']\n(List) ['3', '4']\n" Got 'implicit\n' stdout: implicitstderr: |
osh-cpp | 3 subscript and range of list [osh-cpp stdout] Expected '(Int) 2\n(List) [2, 3]\nimplicit\n(List) [1, 2]\n(List) [3, 4]\n' Got 'implicit\n' stdout: implicitstderr: |
osh-cpp | 4 expressions and negative indices [osh-cpp stdout] Expected "(Str) '5'\n(List) ['2', '3']\nimplicit\n(List) ['1', '2', '3']\n(List) ['4', '5']\n" Got 'implicit\n' stdout: implicitstderr: |
osh-cpp | 5 Explicit slice with step [osh-cpp stdout] Expected '1\n3\n5\n', got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: write @x ^~ [ stdin ]:4: fatal: Can't splice 'x' |
osh-cpp | 6 Index with expression [osh-cpp stdout] Expected '3\n', got '\n' stdout: stderr: |
osh-cpp | 7 Copy wtih a[:] [osh-cpp stdout] Expected '(List) [1, 2, 3]\n', got '' stdout: stderr: |
osh | 8 Slices with Multiple Dimensions (for QTT) [osh stdout] Expected "(Str) 'TODO: Table Slicing'\n(Str) 'TODO: Table Slicing'\n" Got '' [osh status] Expected 0, got 2 stdout: stderr: qtt pretty :mytable <<< ''' ^~~ [ stdin ]:1: 'qtt' not found var t1 = mytable[2:, :] ^ [ stdin ]:8: Only 1 subscript is accepted |
osh-cpp | 8 Slices with Multiple Dimensions (for QTT) [osh-cpp stdout] Expected "(Str) 'TODO: Table Slicing'\n(Str) 'TODO: Table Slicing'\n" Got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: qtt pretty :mytable <<< ''' ^~~ [ stdin ]:1: 'qtt' not found var t1 = mytable[2:, :] ^ [ stdin ]:8: Only 1 subscript is accepted |
osh | 9 Index a list with a range, not a slice. TODO: Figure out semantics [osh stdout] Expected 'TODO\n', got '' stdout: stderr: var myslice = mylist[r] ^~~ [ stdin ]:4: fatal: expected Slice or Int |
osh-cpp | 9 Index a list with a range, not a slice. TODO: Figure out semantics [osh-cpp stdout] Expected 'TODO\n', got '' [osh-cpp status] Expected 3, got 0 stdout: stderr: |
osh-cpp | 10 Range with list constructor [osh-cpp stdout] Expected '0\n1\n2\n', got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: write @mylist ^~~~~~~ [ stdin ]:3: fatal: Can't splice 'mylist' |