| status | ysh | |
| pass | 10 | |
| FAIL | 7 | |
| total | 17 | |
| case | ysh | description |
| 0 | pass | shell array :| a 'b c' | |
| 1 | pass | empty array and simple_word_eval (regression test) |
| 2 | pass | Shell arrays support tilde detection, static globbing, brace detection |
| 3 | pass | Basic List, a[42] a['42'] allowed |
| 4 | pass | Mutate List entries, a[42] a['42'] allowed |
| 5 | FAIL | string array with command sub, varsub, etc. |
| details | ||
| 6 | pass | Can print type of List with pp |
| 7 | pass | splice and stringify array |
| 8 | pass | List->extend() |
| 9 | pass | List append()/extend() should return null |
| 10 | pass | List pop() |
| 11 | FAIL | List remove() removes elements |
| details | ||
| 12 | FAIL | List remove() does nothing if element does not exist |
| details | ||
| 13 | FAIL | List insert() |
| details | ||
| 14 | FAIL | List insert() overflow |
| details | ||
| 15 | FAIL | List insert() negative |
| details | ||
| 16 | FAIL | List insert() negative overflow |
| details |
10 passed, 0 OK, 0 not implemented, 0 BUG, 7 failed, 0 timeouts, 0 cases skipped 7 failed under osh
| ysh | 5 string array with command sub, varsub, etc. [ysh stdout] Expected 'len=4\n1\nhi\nsq\ndq 1\n' Got '' [ysh status] Expected 0 Got 1 [ysh 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 186, in AppBundleMain
return shell.Main(lang, arg_r, environ, login_shell, loader, readline)
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 192, in _PushYshTokens
w = w_parser.ReadWord(lex_mode_e.ShCommand)
File "/home/uke/oil/osh/word_parse.py", line 2327, in ReadWord
w = self._ReadWord(word_mode)
File "/home/uke/oil/osh/word_parse.py", line 2244, in _ReadWord
return self._ReadCompoundOrRedir(lex_mode)
File "/home/uke/oil/osh/word_parse.py", line 1892, in _ReadCompoundOrRedir
return self._ReadCompoundOrRedir3(lex_mode, Id.Undefined_Tok, True)
File "/home/uke/oil/osh/word_parse.py", line 1997, in _ReadCompoundOrRedir3
part = self._ReadUnquotedLeftParts(is_triple_quoted)
File "/home/uke/oil/osh/word_parse.py", line 910, in _ReadUnquotedLeftParts
dq_part = self._ReadDoubleQuoted(self.cur_token)
File "/home/uke/oil/osh/word_parse.py", line 1189, in _ReadDoubleQuoted
self._ReadLikeDQ(left_token, False, 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'
|
| ysh | 11 List remove() removes elements [ysh stdout] Expected 'pass\n' Got '' [ysh status] Expected 0 Got 1 [ysh 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 186, in AppBundleMain
return shell.Main(lang, arg_r, environ, login_shell, loader, readline)
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 2487, in ParseCommand
enode = self.w_parser.ParseCommandExpr()
File "/home/uke/oil/osh/word_parse.py", line 1432, in ParseCommandExpr
self.lexer, grammar_nt.command_expr)
File "/home/uke/oil/frontend/parse_lib.py", line 355, in ParseYshExpr
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'
|
| ysh | 12 List remove() does nothing if element does not exist [ysh stdout] Expected 'pass\n' Got '' [ysh status] Expected 0 Got 1 [ysh 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 186, in AppBundleMain
return shell.Main(lang, arg_r, environ, login_shell, loader, readline)
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 2487, in ParseCommand
enode = self.w_parser.ParseCommandExpr()
File "/home/uke/oil/osh/word_parse.py", line 1432, in ParseCommandExpr
self.lexer, grammar_nt.command_expr)
File "/home/uke/oil/frontend/parse_lib.py", line 355, in ParseYshExpr
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'
|
| ysh | 13 List insert() [ysh stdout] Expected 'pass\n' Got '' [ysh status] Expected 0 Got 1 [ysh 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 186, in AppBundleMain
return shell.Main(lang, arg_r, environ, login_shell, loader, readline)
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 2487, in ParseCommand
enode = self.w_parser.ParseCommandExpr()
File "/home/uke/oil/osh/word_parse.py", line 1432, in ParseCommandExpr
self.lexer, grammar_nt.command_expr)
File "/home/uke/oil/frontend/parse_lib.py", line 355, in ParseYshExpr
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'
|
| ysh | 14 List insert() overflow [ysh stdout] Expected 'pass\n' Got '' [ysh status] Expected 0 Got 1 [ysh 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 186, in AppBundleMain
return shell.Main(lang, arg_r, environ, login_shell, loader, readline)
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 2487, in ParseCommand
enode = self.w_parser.ParseCommandExpr()
File "/home/uke/oil/osh/word_parse.py", line 1432, in ParseCommandExpr
self.lexer, grammar_nt.command_expr)
File "/home/uke/oil/frontend/parse_lib.py", line 355, in ParseYshExpr
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'
|
| ysh | 15 List insert() negative [ysh stdout] Expected 'pass\n' Got '' [ysh status] Expected 0 Got 1 [ysh 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 186, in AppBundleMain
return shell.Main(lang, arg_r, environ, login_shell, loader, readline)
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 2487, in ParseCommand
enode = self.w_parser.ParseCommandExpr()
File "/home/uke/oil/osh/word_parse.py", line 1432, in ParseCommandExpr
self.lexer, grammar_nt.command_expr)
File "/home/uke/oil/frontend/parse_lib.py", line 355, in ParseYshExpr
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'
|
| ysh | 16 List insert() negative overflow [ysh stdout] Expected 'pass\n' Got '' [ysh status] Expected 0 Got 1 [ysh 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 186, in AppBundleMain
return shell.Main(lang, arg_r, environ, login_shell, loader, readline)
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 2487, in ParseCommand
enode = self.w_parser.ParseCommandExpr()
File "/home/uke/oil/osh/word_parse.py", line 1432, in ParseCommandExpr
self.lexer, grammar_nt.command_expr)
File "/home/uke/oil/frontend/parse_lib.py", line 355, in ParseYshExpr
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'
|