* 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
@ -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>
|
Thu Mar 4 00:10:54 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* tool/transcode-tblgen.rb (HEX2): extracted from regexps.
|
* 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
|
math_gamma, math_lgamma): mathematical domain errors
|
||||||
are checked and raised before calling libm's functions.
|
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>
|
Sun Feb 28 15:07:28 2010 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
@ -290,7 +290,7 @@ class TestHash < Test::Unit::TestCase
|
|||||||
assert_equal(base.size, n)
|
assert_equal(base.size, n)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_delete_if
|
def test_keep_if
|
||||||
h = {1=>2,3=>4,5=>6}
|
h = {1=>2,3=>4,5=>6}
|
||||||
assert_equal({3=>4,5=>6}, h.keep_if {|k, v| k + v >= 7 })
|
assert_equal({3=>4,5=>6}, h.keep_if {|k, v| k + v >= 7 })
|
||||||
h = {1=>2,3=>4,5=>6}
|
h = {1=>2,3=>4,5=>6}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user