Results for ysh-convert.test.sh

statusosh
pass 10
FAIL 2
total12
caseoshdescription
0pass bool() conversion
1pass bool() more
2pass int() conversion
3FAIL int() more
details
4pass float() conversion
5FAIL float() overflow / underflow
details
6pass str() conversion
7pass dict() converts from BashAssoc to Dict
8pass dict() does shallow copy
9pass list() does shallow copy
10pass list() from Dict
11pass list() from range
10 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh3 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'
osh5 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'