mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_hash.rb (TestHash#test_keep_if): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
373ed885c6
commit
43ad8929df
2 changed files with 6 additions and 2 deletions
|
|
@ -290,7 +290,7 @@ class TestHash < Test::Unit::TestCase
|
|||
assert_equal(base.size, n)
|
||||
end
|
||||
|
||||
def test_delete_if
|
||||
def test_keep_if
|
||||
h = {1=>2,3=>4,5=>6}
|
||||
assert_equal({3=>4,5=>6}, h.keep_if {|k, v| k + v >= 7 })
|
||||
h = {1=>2,3=>4,5=>6}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue