diff options
Diffstat (limited to 'test/ruby/test_hash.rb')
-rw-r--r-- | test/ruby/test_hash.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 03a712d85b..6a8e7f0423 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -1415,11 +1415,6 @@ class TestHash < Test::Unit::TestCase assert_equal([10, 20, 30], [1, 2, 3].map(&h)) end - def test_sum - histogram = { 1 => 6, 2 => 4, 3 => 3, 4 => 7, 5 => 5, 6 => 4 } - assert_equal(100, histogram.sum {|v, n| v * n }) - end - class TestSubHash < TestHash class SubHash < Hash def reject(*) |