| status | osh | |
| pass | 10 | |
| FAIL | 2 | |
| total | 12 | |
| case | osh | description |
| 0 | pass | bool() conversion |
| 1 | pass | bool() more |
| 2 | pass | int() conversion |
| 3 | FAIL | int() more |
| details | ||
| 4 | pass | float() conversion |
| 5 | FAIL | float() overflow / underflow |
| details | ||
| 6 | pass | str() conversion |
| 7 | pass | dict() converts from BashAssoc to Dict |
| 8 | pass | dict() does shallow copy |
| 9 | pass | list() does shallow copy |
| 10 | pass | list() from Dict |
| 11 | pass | list() from range |
10 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| osh | 3 int() more [osh stdout] Expected '(Int) 3\n(Int) -35\n(Int) 56\ncode=3\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 2554, in ParseCommand
return self.ParseSimpleCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 1222, in ParseSimpleCommand
redirects, words, typed_args, block = self._ScanSimpleCommand()
File "/home/uke/oil/osh/cmd_parse.py", line 975, in _ScanSimpleCommand
grammar_nt.ysh_eager_arglist)
File "/home/uke/oil/osh/word_parse.py", line 1778, in ParseProcCallArgs
self.parse_ctx.ParseProcCallArgs(self.lexer, arg_list, start_symbol)
File "/home/uke/oil/frontend/parse_lib.py", line 338, in ParseProcCallArgs
pnode, last_token = e_parser.Parse(lx, start_symbol)
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 | 5 float() overflow / underflow [osh stdout] Expected '1.2\n3.4\ninf\n-inf\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'
|