spec test index / oilshell.org
status | osh | osh_ALT | |
pass | 13 | 13 | |
FAIL | 1 | 1 | |
total | 14 | 14 | |
case | osh | osh_ALT | description |
0 | pass | pass | ranges have higher precedence than comparison (disabled) |
1 | pass | pass | ranges have lower precedence than bitwise operators |
2 | pass | pass | subscript and range of array |
3 | pass | pass | subscript and range of list |
4 | pass | pass | expressions and negative indices |
5 | pass | pass | Range loop |
6 | pass | pass | Explicit range with step |
7 | pass | pass | Explicit slice with step |
8 | pass | pass | Index with a Tuple |
9 | pass | pass | Index with expression |
10 | pass | pass | Copy wtih a[:] |
11 | pass | pass | Slices with Multiple Dimensions (with Table/data frame) |
12 | FAIL | FAIL | Index a list with a range, not a slice. TODO: Figure out semantics |
details | details | ||
13 | pass | pass | Range with list constructor |
26 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 12 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 |
osh_ALT | 12 Index a list with a range, not a slice. TODO: Figure out semantics [osh_ALT 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 |