Results for oil-slice-range.test.sh

statusosh
pass 13
FAIL 1
total14
caseoshdescription
0pass ranges have higher precedence than comparison (disabled)
1pass ranges have lower precedence than bitwise operators
2pass subscript and range of array
3pass subscript and range of list
4pass expressions and negative indices
5pass Range loop
6pass Explicit range with step
7pass Explicit slice with step
8pass Index with a Tuple
9pass Index with expression
10pass Copy wtih a[:]
11pass Slices with Multiple Dimensions (with Table/data frame)
12FAIL Slice with Range
details
13pass Range with list constructor
13 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh12 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/build/oil/bin/oil.py", line 358, in <module>
    sys.exit(main(sys.argv))
  File "/home/build/oil/bin/oil.py", line 301, in main
    return AppBundleMain(argv)
  File "/home/build/oil/bin/oil.py", line 261, in AppBundleMain
    loader, line_input)
  File "/home/build/oil/core/shell.py", line 682, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/build/oil/core/main_loop.py", line 324, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/build/oil/osh/cmd_eval.py", line 1490, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/build/oil/osh/cmd_eval.py", line 1337, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/build/oil/osh/cmd_eval.py", line 719, in _Dispatch
    py_val = self.expr_ev.EvalExpr(node.rhs)
  File "/home/build/oil/oil_lang/expr_eval.py", line 520, in EvalExpr
    return obj[index]
TypeError: list indices must be integers, not xrange