| status | osh | |
| pass | 4 | |
| FAIL | 3 | |
| total | 7 | |
| case | osh | description |
| 0 | pass | "in" and "not in" on Dicts |
| 1 | FAIL | dict with 'bare word' keys |
| details | ||
| 2 | FAIL | dict with expression keys |
| details | ||
| 3 | pass | dict literal with implicit value |
| 4 | FAIL | Dict literal with string keys |
| details | ||
| 5 | pass | keys(d), values(d), get(d, key) |
| 6 | pass | get() has default null |
4 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
| osh | 1 dict with 'bare word' keys [osh stdout] Expected 'len=0\nlen=1\nlen=2\n' Got 'len=0\n' [osh status] Expected 0 Got 1 [osh stderr] Found 'Traceback (most recent' stdout: len=0stderr: Traceback (most recent call last):
File "/home/uke/oil/bin/oils_for_unix.py", line 263, in <module>
sys.exit(main(sys.argv))
File "/home/uke/oil/bin/oils_for_unix.py", line 232, in main
return AppBundleMain(argv)
File "/home/uke/oil/bin/oils_for_unix.py", line 198, in AppBundleMain
bash_compat=(applet == 'bash'))
File "/home/uke/oil/core/shell.py", line 1296, in Main
cmd_flags=cmd_eval.IsMainProgram)
File "/home/uke/oil/core/main_loop.py", line 336, in Batch
was_parsed, status = Batch2(cmd_ev, c_parser, errfmt, cmd_flags=cmd_flags)
File "/home/uke/oil/core/main_loop.py", line 375, in Batch2
node = c_parser.ParseLogicalLine() # can raise ParseError
File "/home/uke/oil/osh/cmd_parse.py", line 2839, in ParseLogicalLine
node = self._ParseCommandLine()
File "/home/uke/oil/osh/cmd_parse.py", line 2695, in _ParseCommandLine
child = self.ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2619, in ParseAndOr
return self._ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2630, in _ParseAndOr
child = self.ParsePipeline()
File "/home/uke/oil/osh/cmd_parse.py", line 2578, in ParsePipeline
child = self.ParseCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 2469, in ParseCommand
n8 = self.w_parser.ParseVarDecl(kw_token)
File "/home/uke/oil/osh/word_parse.py", line 1334, in ParseVarDecl
enode, last_token = self.parse_ctx.ParseVarDecl(kw_token, self.lexer)
File "/home/uke/oil/frontend/parse_lib.py", line 309, in ParseVarDecl
pnode, last_token = e_parser.Parse(lexer, grammar_nt.ysh_var_decl)
File "/home/uke/oil/ysh/expr_parse.py", line 357, in Parse
self.push_parser, lexer)
File "/home/uke/oil/ysh/expr_parse.py", line 273, in _PushYshTokens
last_token = w_parser.ReadDoubleQuoted(left_token, parts)
File "/home/uke/oil/osh/word_parse.py", line 1200, in ReadDoubleQuoted
self._ReadLikeDQ(left_token, True, parts)
File "/home/uke/oil/osh/word_parse.py", line 1100, in _ReadLikeDQ
elif self.token_type == Id.Lit_EscapedDoubleQuote:
AttributeError: type object 'Id' has no attribute 'Lit_EscapedDoubleQuote'
|
| osh | 2 dict with expression keys [osh stdout] Expected 'len=1\nhello\nlen=1\nbar\n' Got '' [osh status] Expected 0 Got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last):
File "/home/uke/oil/bin/oils_for_unix.py", line 263, in <module>
sys.exit(main(sys.argv))
File "/home/uke/oil/bin/oils_for_unix.py", line 232, in main
return AppBundleMain(argv)
File "/home/uke/oil/bin/oils_for_unix.py", line 198, in AppBundleMain
bash_compat=(applet == 'bash'))
File "/home/uke/oil/core/shell.py", line 1296, in Main
cmd_flags=cmd_eval.IsMainProgram)
File "/home/uke/oil/core/main_loop.py", line 336, in Batch
was_parsed, status = Batch2(cmd_ev, c_parser, errfmt, cmd_flags=cmd_flags)
File "/home/uke/oil/core/main_loop.py", line 375, in Batch2
node = c_parser.ParseLogicalLine() # can raise ParseError
File "/home/uke/oil/osh/cmd_parse.py", line 2839, in ParseLogicalLine
node = self._ParseCommandLine()
File "/home/uke/oil/osh/cmd_parse.py", line 2695, in _ParseCommandLine
child = self.ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2619, in ParseAndOr
return self._ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2630, in _ParseAndOr
child = self.ParsePipeline()
File "/home/uke/oil/osh/cmd_parse.py", line 2578, in ParsePipeline
child = self.ParseCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 2469, in ParseCommand
n8 = self.w_parser.ParseVarDecl(kw_token)
File "/home/uke/oil/osh/word_parse.py", line 1334, in ParseVarDecl
enode, last_token = self.parse_ctx.ParseVarDecl(kw_token, self.lexer)
File "/home/uke/oil/frontend/parse_lib.py", line 309, in ParseVarDecl
pnode, last_token = e_parser.Parse(lexer, grammar_nt.ysh_var_decl)
File "/home/uke/oil/ysh/expr_parse.py", line 357, in Parse
self.push_parser, lexer)
File "/home/uke/oil/ysh/expr_parse.py", line 273, in _PushYshTokens
last_token = w_parser.ReadDoubleQuoted(left_token, parts)
File "/home/uke/oil/osh/word_parse.py", line 1200, in ReadDoubleQuoted
self._ReadLikeDQ(left_token, True, parts)
File "/home/uke/oil/osh/word_parse.py", line 1100, in _ReadLikeDQ
elif self.token_type == Id.Lit_EscapedDoubleQuote:
AttributeError: type object 'Id' has no attribute 'Lit_EscapedDoubleQuote'
|
| osh | 4 Dict literal with string keys [osh stdout] Expected '123\n456\n' Got '123\n' [osh status] Expected 0 Got 1 [osh stderr] Found 'Traceback (most recent' stdout: 123stderr: Traceback (most recent call last):
File "/home/uke/oil/bin/oils_for_unix.py", line 263, in <module>
sys.exit(main(sys.argv))
File "/home/uke/oil/bin/oils_for_unix.py", line 232, in main
return AppBundleMain(argv)
File "/home/uke/oil/bin/oils_for_unix.py", line 198, in AppBundleMain
bash_compat=(applet == 'bash'))
File "/home/uke/oil/core/shell.py", line 1296, in Main
cmd_flags=cmd_eval.IsMainProgram)
File "/home/uke/oil/core/main_loop.py", line 336, in Batch
was_parsed, status = Batch2(cmd_ev, c_parser, errfmt, cmd_flags=cmd_flags)
File "/home/uke/oil/core/main_loop.py", line 375, in Batch2
node = c_parser.ParseLogicalLine() # can raise ParseError
File "/home/uke/oil/osh/cmd_parse.py", line 2839, in ParseLogicalLine
node = self._ParseCommandLine()
File "/home/uke/oil/osh/cmd_parse.py", line 2695, in _ParseCommandLine
child = self.ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2619, in ParseAndOr
return self._ParseAndOr()
File "/home/uke/oil/osh/cmd_parse.py", line 2630, in _ParseAndOr
child = self.ParsePipeline()
File "/home/uke/oil/osh/cmd_parse.py", line 2578, in ParsePipeline
child = self.ParseCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 2469, in ParseCommand
n8 = self.w_parser.ParseVarDecl(kw_token)
File "/home/uke/oil/osh/word_parse.py", line 1334, in ParseVarDecl
enode, last_token = self.parse_ctx.ParseVarDecl(kw_token, self.lexer)
File "/home/uke/oil/frontend/parse_lib.py", line 309, in ParseVarDecl
pnode, last_token = e_parser.Parse(lexer, grammar_nt.ysh_var_decl)
File "/home/uke/oil/ysh/expr_parse.py", line 357, in Parse
self.push_parser, lexer)
File "/home/uke/oil/ysh/expr_parse.py", line 273, in _PushYshTokens
last_token = w_parser.ReadDoubleQuoted(left_token, parts)
File "/home/uke/oil/osh/word_parse.py", line 1200, in ReadDoubleQuoted
self._ReadLikeDQ(left_token, True, parts)
File "/home/uke/oil/osh/word_parse.py", line 1100, in _ReadLikeDQ
elif self.token_type == Id.Lit_EscapedDoubleQuote:
AttributeError: type object 'Id' has no attribute 'Lit_EscapedDoubleQuote'
|