mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_method.rb: r48239 makes this test green.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5bcfbd91a7
commit
5d1f152fa3
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Nov 3 03:39:04 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* test/ruby/test_method.rb: r48239 makes this test green.
|
||||
|
||||
Mon Nov 03 03:02:38 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* rewrite method/block parameter fitting logic to optimize
|
||||
|
|
|
@ -856,4 +856,13 @@ class TestMethod < Test::Unit::TestCase
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue