spec test index / oilshell.org
status | osh | |
pass | 13 | |
FAIL | 1 | |
total | 14 | |
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 | Range loop |
6 | pass | Explicit range with step |
7 | pass | Explicit slice with step |
8 | pass | Index with a Tuple |
9 | pass | Index with expression |
10 | pass | Copy wtih a[:] |
11 | pass | Slices with Multiple Dimensions (with Table/data frame) |
12 | FAIL | Slice with Range |
details | ||
13 | pass | Range with list constructor |
13 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 12 Slice with Range [osh stdout] Expected 'a\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/travis/build/oilshell/oil/bin/oil.py", line 358, in <module> sys.exit(main(sys.argv)) File "/home/travis/build/oilshell/oil/bin/oil.py", line 301, in main return AppBundleMain(argv) File "/home/travis/build/oilshell/oil/bin/oil.py", line 261, in AppBundleMain loader, line_input) File "/home/travis/build/oilshell/oil/core/shell.py", line 675, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/travis/build/oilshell/oil/core/main_loop.py", line 324, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1498, in ExecuteAndCatch status = self._Execute(node) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute status, check_errexit = self._Dispatch(node, pipeline_st) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 727, in _Dispatch py_val = self.expr_ev.EvalExpr(node.rhs) File "/home/travis/build/oilshell/oil/oil_lang/expr_eval.py", line 532, in EvalExpr return obj[index] TypeError: list indices must be integers, not xrange |