summaryrefslogtreecommitdiff
path: root/bootstraptest/test_literal.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-01 05:20:06 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-01 05:20:06 +0000
commit2bbffcd6a401f047beda6ec4aadacc2c899afec6 (patch)
tree5a3506d396ab6878589a792d4719095a631a5658 /bootstraptest/test_literal.rb
parent6fafbfd63e9f56350e06910bbac70bf7ff0d5df0 (diff)
* insns.def (concatarray, splatarray): use to_a instead of
to_splat. * insnhelper.ci (caller_setup_args): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_literal.rb')
-rw-r--r--bootstraptest/test_literal.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/test_literal.rb b/bootstraptest/test_literal.rb
index 2efd415..3c94145 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]"