diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-28 10:41:11 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-28 10:41:11 +0000 |
| commit | 4d1c938eb0347bd1bee5960417e1cd706f91a31a (patch) | |
| tree | f541991858a80ab6c732115246080c65f2be471e /test/ruby | |
| parent | a5084e5306fbbab3c231a4e4a97482454ba158fe (diff) | |
| download | ruby-4d1c938eb0347bd1bee5960417e1cd706f91a31a.tar.gz ruby-4d1c938eb0347bd1bee5960417e1cd706f91a31a.tar.xz ruby-4d1c938eb0347bd1bee5960417e1cd706f91a31a.zip | |
* proc.c (rb_method_entry_arity): support optimized method (send).
* test/ruby/test_method.rb: add a test for above.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_method.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index dc44eee27..c60f7fa8a 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -51,6 +51,10 @@ class TestMethod < Test::Unit::TestCase assert_equal(-3, method(:mo6).arity) end + def test_arity_special + assert_equal(-1, method(:__send__).arity) + end + def test_unbind assert_equal(:derived, Derived.new.foo) um = Derived.new.method(:foo).unbind |
