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 71, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main
    status = pure.Main('osh', arg_r, environ, login_shell, loader, None)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 446, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 153, in Batch
    node = c_parser.ParseLogicalLine()  # can raise ParseError
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 2062, in ParseLogicalLine
    node = self._ParseCommandLine()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1924, in _ParseCommandLine
    child = self.ParseAndOr()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1854, in ParseAndOr
    child = self.ParsePipeline()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1800, in ParsePipeline
    child = self.ParseCommand()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 1774, in ParseCommand
    return self.ParseSimpleCommand()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 823, in ParseSimpleCommand
    redirects, words, block = self._ScanSimpleCommand()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 561, in _ScanSimpleCommand
    self._Peek()
  File "/home/andy/git/oilshell/oil/osh/cmd_parse.py", line 422, in _Peek
    w = self.w_parser.ReadWord(self.next_lex_mode)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 1489, in ReadWord
    w, need_more = self._ReadWord(lex_mode)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 1449, in _ReadWord
    w = self._ReadCompoundWord(lex_mode)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 1190, in _ReadCompoundWord
    return self._ReadCompoundWord3(lex_mode, Id.Undefined_Tok, True)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 1302, in _ReadCompoundWord3
    part = self._ReadLeftParts()
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 617, in _ReadLeftParts
    return self._ReadExprSub(lex_mode_e.ShCommand)
  File "/home/andy/git/oilshell/oil/osh/word_parse.py", line 839, in _ReadExprSub
    enode, _ = self.parse_ctx.ParseOilExpr(self.lexer, grammar_nt.oil_expr_sub)
  File "/home/andy/git/oilshell/oil/frontend/parse_lib.py", line 366, in ParseOilExpr
    pnode, last_token = self.e_parser.Parse(lexer, start_symbol)
  File "/home/andy/git/oilshell/oil/oil_lang/expr_parse.py", line 308, in Parse
    self.push_parser.setup(start_symbol)
  File "/home/andy/git/oilshell/oil/pgen2/parse.py", line 111, in setup
    self.stack = [_StackItem(self.grammar.dfas[start], 0, newnode)]
AttributeError: 'NoneType' object has no attribute 'dfas'
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.