spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 10 | 9 | 9 | |
FAIL | 0 | 1 | 1 | |
total | 10 | 10 | 10 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | Multiple right brackets inside expression |
1 | pass | pass | pass | Slicing of string with constants |
2 | pass | pass | pass | Slicing of string with variables |
3 | pass | pass | pass | Array index on LHS of assignment |
4 | pass | pass | pass | Array index on LHS with indices |
5 | pass | pass | pass | Slicing of string with expressions |
6 | pass | pass | pass | Ambiguous colon in slice |
7 | pass | pass | pass | Triple parens should be disambiguated |
8 | pass | pass | pass | Quadruple parens should be disambiguated |
9 | pass | FAIL | FAIL | ExprSub $[] happpens to behave the same on simple cases |
details | details |
28 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
osh_.py | 9 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/uke/oil/bin/osh_eval.py", line 66, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/osh_eval.py", line 34, in main None) File "/home/uke/oil/core/shell_native.py", line 521, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 317, in Batch node = c_parser.ParseLogicalLine() # can raise ParseError File "/home/uke/oil/osh/cmd_parse.py", line 2366, in ParseLogicalLine node = self._ParseCommandLine() File "/home/uke/oil/osh/cmd_parse.py", line 2227, in _ParseCommandLine child = self.ParseAndOr() File "/home/uke/oil/osh/cmd_parse.py", line 2146, in ParseAndOr return self._ParseAndOr() File "/home/uke/oil/osh/cmd_parse.py", line 2157, in _ParseAndOr child = self.ParsePipeline() File "/home/uke/oil/osh/cmd_parse.py", line 2089, in ParsePipeline child = self.ParseCommand() File "/home/uke/oil/osh/cmd_parse.py", line 2063, in ParseCommand return self.ParseSimpleCommand() File "/home/uke/oil/osh/cmd_parse.py", line 979, in ParseSimpleCommand redirects, words, typed_args, block = self._ScanSimpleCommand() File "/home/uke/oil/osh/cmd_parse.py", line 680, in _ScanSimpleCommand self._Peek() File "/home/uke/oil/osh/cmd_parse.py", line 544, in _Peek w = self.w_parser.ReadWord(self.next_lex_mode) File "/home/uke/oil/osh/word_parse.py", line 1806, in ReadWord w, need_more = self._ReadWord(lex_mode) File "/home/uke/oil/osh/word_parse.py", line 1725, in _ReadWord w = self._ReadCompoundWord(lex_mode) File "/home/uke/oil/osh/word_parse.py", line 1458, in _ReadCompoundWord return self._ReadCompoundWord3(lex_mode, Id.Undefined_Tok, True) File "/home/uke/oil/osh/word_parse.py", line 1551, in _ReadCompoundWord3 part = self._ReadUnquotedLeftParts(try_triple_quote, triple_out) File "/home/uke/oil/osh/word_parse.py", line 753, in _ReadUnquotedLeftParts return self._ReadExprSub(lex_mode_e.ShCommand) File "/home/uke/oil/osh/word_parse.py", line 1018, in _ReadExprSub enode, _ = self.parse_ctx.ParseOilExpr(self.lexer, grammar_nt.oil_expr_sub) File "/home/uke/oil/frontend/parse_lib.py", line 374, in ParseOilExpr pnode, last_token = self._ParseOil(lexer, start_symbol) File "/home/uke/oil/frontend/parse_lib.py", line 329, in _ParseOil return e_parser.Parse(lexer, start_symbol) File "/home/uke/oil/oil_lang/expr_parse.py", line 318, in Parse self.push_parser.setup(start_symbol) File "/home/uke/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_.cc | 9 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.stripped: cpp/leaky_pgen2.cc:8: void parse::Parser::setup(int): Assertion `0' failed. |