diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-14 03:09:53 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-14 03:09:53 +0000 |
commit | 47b8a0e7e4a04a28e57c3f9bb712a1f88d9e27bb (patch) | |
tree | 39e60213b4ef1aac330a6026869422e7c3e8288a /test/ruby/test_proc.rb | |
parent | 0fd75b46b755dac01f6bc6ccdf40c8abf8e7d23d (diff) | |
download | ruby-47b8a0e7e4a04a28e57c3f9bb712a1f88d9e27bb.tar.gz |
avoid method redefinition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r-- | test/ruby/test_proc.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index 213566903e..f6fd5c8ea0 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -620,7 +620,7 @@ class TestProc < Test::Unit::TestCase assert_equal [1, 2, 3, 4, 5, 6, Proc, :x], (pr.call(1, 2, 3, 4, 5, 6, 7){|x| x}) end - def test_proc_args_opt_and_block + def test_proc_args_opt_and_block2 pr = proc {|a,b,c=:c,d=:d,*e,&f| [a, b, c, d, e, f.class, f&&f.call(:x)] } |