Results for arith-context.test.sh

statusoshosh_.pyosh_.cc
pass 1095
FAIL 015
total101010
caseoshosh_.pyosh_.ccdescription
0pass pass pass Multiple right brackets inside expression
1pass pass FAIL Slicing of string with constants
details
2pass pass FAIL Slicing of string with variables
details
3pass pass pass Array index on LHS of assignment
4pass pass pass Array index on LHS with indices
5pass pass FAIL Slicing of string with expressions
details
6pass pass FAIL Ambiguous colon in slice
details
7pass pass pass Triple parens should be disambiguated
8pass pass pass Quadruple parens should be disambiguated
9pass FAIL FAIL ExprSub $[] happpens to behave the same on simple cases
detailsdetails
24 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.cc1 Slicing of string with constants

[osh_.cc stdout] Expected 'abcd abcd b\n', got 'abcd abcd abcd\n'

stdout:
abcd abcd abcd
stderr:
osh_.cc2 Slicing of string with variables

[osh_.cc stdout] Expected 'abcd abcd b\n', got 'abcd abcd abcd\n'

stdout:
abcd abcd abcd
stderr:
osh_.cc5 Slicing of string with expressions

[osh_.cc stdout] Expected 'abcd abcd b\n', got 'abcd abcd abcd\n'

stdout:
abcd abcd abcd
stderr:
osh_.cc6 Ambiguous colon in slice

[osh_.cc stdout] Expected u'2\nc\n', got '2\nabcd\n'

stdout:
2
abcd
stderr:
osh_.py9 ExprSub $[] happpens to behave the same on simple cases

[osh_.py stdout] Expected '3 12\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch
    cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2
    self._EvalWordToParts(w, False, part_vals)  # not double quoted
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts
    self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1435, in _EvalWordPart
    py_val = self.expr_ev.EvalExpr(part.child)
AttributeError: 'NoneType' object has no attribute 'EvalExpr'
osh_.cc9 ExprSub $[] happpens to behave the same on simple cases

[osh_.cc stdout] Expected '3 12\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/pgen2_parse.cc:8: void parse::Parser::setup(int): Assertion `0' failed.