aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-21 00:13:44 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-21 00:13:44 +0000
commitf12c14d3ef2474631c78d28b45d15db1d2cc668c (patch)
tree4b6deab7ffae8f30c9029bae6b9a96d9d4fd7f78 /test/ruby
parent3052f75db499d18a7954766e1178a8d7e06c1867 (diff)
downloadruby-f12c14d3ef2474631c78d28b45d15db1d2cc668c.tar.gz
* proc.c (method_hash, proc_hash): Fix {Unbound}Method#hash
[Bug #6048]. Isolate hash computation for proc * internal.h: Declaration for above * vm_method.c (rb_method_definition_hash): Computation for hash part of a method definition * method.h: Declaration for above * test/ruby/test_method.rb: Test for above git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_method.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 8dbca7dd3c..c784bd357e 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -158,6 +158,7 @@ class TestMethod < Test::Unit::TestCase
o = Object.new
def o.foo; end
assert_kind_of(Integer, o.method(:foo).hash)
+ assert_equal(Array.instance_method(:map).hash, Array.instance_method(:collect).hash)
end
def test_receiver_name_owner