From 61d7065be290eb93fc8e1e560cf250c02315108e Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 1 Dec 2007 05:20:06 +0000 Subject: * insns.def (concatarray, splatarray): use to_a instead of to_splat. * insnhelper.ci (caller_setup_args): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_literal.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootstraptest') diff --git a/bootstraptest/test_literal.rb b/bootstraptest/test_literal.rb index 2efd41542..3c9414576 100644 --- a/bootstraptest/test_literal.rb +++ b/bootstraptest/test_literal.rb @@ -113,8 +113,8 @@ assert_equal '1', 'a = [obj = Object.new]; a.size' assert_equal 'true', 'a = [obj = Object.new]; a[0] == obj' assert_equal '5', 'a = [1,2,3]; a[1] = 5; a[1]' 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 '[1, 2]', 'def nil.to_a; [2]; end; [1, *nil]' +assert_equal '[1, 2]', 'def nil.to_a; [1, 2]; end; [*nil]' assert_equal '[0, 1, {2=>3}]', '[0, *[1], 2=>3]', "[ruby-dev:31592]" -- cgit