diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-31 08:13:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-31 08:13:58 +0000 |
commit | bfdccf09c79262d10e42c8b4eeb8bb2cacada74f (patch) | |
tree | 13bcedfe9f5ee23a74c001ac2e3110168bade639 /test/ruby/test_hash.rb | |
parent | 160d02d830d93316a8b4afd54138c1a8bfb8a6b3 (diff) | |
download | ruby-bfdccf09c79262d10e42c8b4eeb8bb2cacada74f.tar.gz |
use super in h.default
* test/ruby/test_hash.rb (TestHash#test_shift_none): super in
singleton default method doesn't cause SystemStackError now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_hash.rb')
-rw-r--r-- | test/ruby/test_hash.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 4b635a194d..bcfe13cbb3 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -742,7 +742,7 @@ class TestHash < Test::Unit::TestCase def test_shift_none h = Hash.new {|hh, k| "foo"} def h.default(k = nil) - default_proc.call(k).upcase + super.upcase end assert_equal("FOO", h.shift) end |