1
0
Fork 0
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:
kazu 2010-03-03 17:33:45 +00:00
parent 373ed885c6
commit 43ad8929df
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Thu Mar 4 02:29:52 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/ruby/test_hash.rb (TestHash#test_keep_if): fix typo.
Thu Mar 4 00:10:54 2010 Tanaka Akira <akr@fsij.org>
* tool/transcode-tblgen.rb (HEX2): extracted from regexps.
@ -111,7 +115,7 @@ Sun Feb 28 18:58:00 2010 Kenta Murata <mrkn@mrkn.jp>
math_gamma, math_lgamma): mathematical domain errors
are checked and raised before calling libm's functions.
* test/ruby/test_math.rb: updated for changes of maht.c.
* test/ruby/test_math.rb: updated for changes of math.c.
Sun Feb 28 15:07:28 2010 Tanaka Akira <akr@fsij.org>

View file

@ -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}