spec test index / oilshell.org
| status | osh | |
| pass | 10 | |
| FAIL | 2 | |
| total | 12 | |
| case | osh | description |
| 0 | pass | ranges have higher precedence than comparison (disabled) |
| 1 | pass | ranges have lower precedence than bitwise operators |
| 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 a Tuple |
| 7 | pass | Index with expression |
| 8 | pass | Copy wtih a[:] |
| 9 | FAIL | Slices with Multiple Dimensions (for QTT) |
| details | ||
| 10 | FAIL | Index a list with a range, not a slice. TODO: Figure out semantics |
| details | ||
| 11 | pass | Range with list constructor |
10 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| osh | 9 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 1 stdout: stderr: qtt pretty :mytable <<< '''
^~~
[ stdin ]:1: 'qtt' not found
var t1 = mytable[2:, :]
^~~~~~~
[ stdin ]:8: fatal: Undefined variable 'mytable'
|
| osh | 10 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: Type error in expression: list indices must be integers, not xrange |