ruby-changes:36160
From: ko1 <ko1@a...>
Date: Mon, 3 Nov 2014 03:40:59 +0900 (JST)
Subject: [ruby-changes:36160] ko1:r48241 (trunk): * test/ruby/test_method.rb: r48239 makes this test green.
ko1 2014-11-03 03:40:45 +0900 (Mon, 03 Nov 2014) New Revision: 48241 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48241 Log: * test/ruby/test_method.rb: r48239 makes this test green. Modified files: trunk/ChangeLog trunk/test/ruby/test_method.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 48240) +++ ChangeLog (revision 48241) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Nov 3 03:39:04 2014 Koichi Sasada <ko1@a...> + + * test/ruby/test_method.rb: r48239 makes this test green. + Mon Nov 03 03:02:38 2014 Koichi Sasada <ko1@a...> * rewrite method/block parameter fitting logic to optimize Index: test/ruby/test_method.rb =================================================================== --- test/ruby/test_method.rb (revision 48240) +++ test/ruby/test_method.rb (revision 48241) @@ -856,4 +856,13 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L856 m = assert_nothing_raised(NameError, Feature9781) {break m.super_method} assert_nil(m, Feature9781) end + + def rest_parameter(*rest) + rest + end + + def test_splat_long_array + n = 10_000_000 + assert_equal n , rest_parameter(*(1..n)).size, '[Feature #10440]' + end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/