summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-02 18:40:45 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-02 18:40:45 +0000
commit5d1f152fa342f6bb5fa9b546e3971843ee81c6b1 (patch)
treedcb100d2506441a3f7889760b6bb6f342a6fb498
parent5bcfbd91a72a9fafcaec7531c9d0bec15dae85b7 (diff)
* 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
-rw-r--r--ChangeLog4
-rw-r--r--test/ruby/test_method.rb9
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2f22004..3b29ce8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 056b3a5..97cc430 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -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