summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_proc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r--test/ruby/test_proc.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb
index ee53eeaf3..8d2521b02 100644
--- a/test/ruby/test_proc.rb
+++ b/test/ruby/test_proc.rb
@@ -309,4 +309,11 @@ class TestProc < Test::Unit::TestCase
def test_binding2
assert_raise(ArgumentError) { proc {}.curry.binding }
end
+
+ def test_proc_args_unleashed
+ r = proc {|a,b=1,*c,d,e|
+ [a,b,c,d,e]
+ }.call(1,2,3,4,5)
+ assert_equal([1,2,[3],4,5], r, "[ruby-core:19485]")
+ end
end