spec test index / oilshell.org
| status | osh | |
| pass | 6 | |
| FAIL | 5 | |
| total | 11 | |
| case | osh | description |
| 0 | FAIL | precedence of 1:3 vs comparison |
| details | ||
| 1 | FAIL | precedence of 1:3 vs bitwise operator |
| details | ||
| 2 | pass | subscript and range of array |
| 3 | pass | subscript and range of list |
| 4 | pass | expressions and negative indices |
| 5 | pass | Explicit slice with step |
| 6 | pass | Index with expression |
| 7 | pass | Copy wtih a[:] |
| 8 | FAIL | Slices with Multiple Dimensions (for QTT) |
| details | ||
| 9 | FAIL | Index a list with a range, not a slice. TODO: Figure out semantics |
| details | ||
| 10 | FAIL | List(0:3) should copy the list? |
| details |
6 passed, 0 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped 5 failed under osh
| osh | 0 precedence of 1:3 vs comparison [osh stdout] Expected '(xrange) xrange(1, 3)\n', got '' [osh status] Expected 0, got 2 stdout: stderr: [??? no location ???] Ranges not implemented |
| osh | 1 precedence of 1:3 vs bitwise operator [osh stdout] Expected '(xrange) xrange(3, 7)\n', got '' [osh status] Expected 0, got 2 stdout: stderr: [??? no location ???] Ranges not implemented |
| 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 | 9 Index a list with a range, not a slice. TODO: Figure out semantics [osh stdout] Expected 'TODO\n', got '' [osh status] Expected 3, got 2 stdout: stderr: [??? no location ???] Ranges not implemented |
| osh | 10 List(0:3) should copy the list? [osh stdout] Expected '0\n1\n2\n', got '' [osh status] Expected 0, got 2 stdout: stderr: [??? no location ???] Ranges not implemented |