ruby-changes:1810
From: ko1@a...
Date: 29 Aug 2007 12:48:34 +0900
Subject: [ruby-changes:1810] nobu - Ruby:r13301 (trunk): * parse.y (aref_args): args may not be a list.
nobu 2007-08-29 12:48:19 +0900 (Wed, 29 Aug 2007) New Revision: 13301 Modified files: trunk/ChangeLog trunk/bootstraptest/test_knownbug.rb trunk/bootstraptest/test_literal.rb trunk/parse.y Log: * parse.y (aref_args): args may not be a list. [ruby-dev:31592] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_literal.rb?r1=13301&r2=13300 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=13301&r2=13300 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13301&r2=13300 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=13301&r2=13300 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=13301&r2=13300 Index: ChangeLog =================================================================== --- ChangeLog (revision 13300) +++ ChangeLog (revision 13301) @@ -1,3 +1,7 @@ +Wed Aug 29 12:48:17 2007 Nobuyoshi Nakada <nobu@r...> + + * parse.y (aref_args): args may not be a list. [ruby-dev:31592] + Wed Aug 29 11:30:10 2007 Tanaka Akira <akr@f...> * include/ruby/st.h (struct st_table): add entries_packed 1-bit Index: bootstraptest/test_knownbug.rb =================================================================== --- bootstraptest/test_knownbug.rb (revision 13300) +++ bootstraptest/test_knownbug.rb (revision 13301) @@ -1,16 +1,14 @@ -# -# This test file concludes tests which point out known bugs. -# So all tests will cause failure. -# - -# massign -assert_equal '[0,1,{2=>3}]', '[0,*[1],2=>3]', "[ruby-dev:31592]" - -assert_equal 'ok', %q{ - def m() - yield :ng - end - r = :ok - m {|(r)|} - r -}, '[ruby-dev:31507]' +# +# This test file concludes tests which point out known bugs. +# So all tests will cause failure. +# + +# massign +assert_equal 'ok', %q{ + def m() + yield :ng + end + r = :ok + m {|(r)|} + r +}, '[ruby-dev:31507]' Property changes on: bootstraptest/test_knownbug.rb ___________________________________________________________________ Name: svn:eol-style + LF Index: bootstraptest/test_literal.rb =================================================================== --- bootstraptest/test_literal.rb (revision 13300) +++ bootstraptest/test_literal.rb (revision 13301) @@ -115,7 +115,9 @@ assert_equal 'bar', '[*:foo];:bar' assert_equal '[1, 2]', 'def nil.to_splat; [2]; end; [1, *nil]' assert_equal '[1, 2]', 'def nil.to_splat; [1, 2]; end; [*nil]' +assert_equal '[0, 1, {2=>3}]', '[0, *[1], 2=>3]', "[ruby-dev:31592]" + # hash assert_equal 'Hash', '{}.class' assert_equal '{}', '{}.inspect' Index: parse.y =================================================================== --- parse.y (revision 13300) +++ parse.y (revision 13301) @@ -2239,7 +2239,7 @@ | args ',' assocs trailer { /*%%%*/ - $$ = list_append($1, NEW_HASH($3)); + $$ = arg_append($1, NEW_HASH($3)); /*% $$ = arg_add_assocs($1, $3); %*/ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml