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 Multilple Dimensions (with Table/data frame) |
12 | FAIL | FAIL | Slice with Range |
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 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/andy/git/oilshell/oil/bin/oil.py", line 998, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 944, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 917, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 732, in ShellMain status = main_loop.Batch(cmd_ev, c_parser, arena, nodes_out=nodes_out, is_main=True) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 171, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, optimize=optimize) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1444, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1328, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 676, in _Dispatch py_val = self.expr_ev.EvalExpr(node.rhs) File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 503, in EvalExpr return obj[index] TypeError: list indices must be integers, not xrange |
osh_ALT | 12 Slice with Range [osh_ALT stdout] Expected 'a\n', got '' [osh_ALT status] Expected 0, got 1 [osh_ALT stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 973, in _cpython_main_hook sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 944, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 917, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 732, in ShellMain status = main_loop.Batch(cmd_ev, c_parser, arena, nodes_out=nodes_out, is_main=True) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 177, in Batch return status File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1444, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1328, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 708, in _Dispatch lookup_mode = scope_e.LocalOrGlobal File "/home/andy/git/oilshell/oil/oil_lang/expr_eval.py", line 503, in EvalExpr return obj[index] TypeError: list indices must be integers, not xrange FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.8.pre4/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |