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/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 557, in EvalExpr
    return obj[index]
TypeError: list indices must be integers, not xrange