зеркало из https://github.com/github/ruby.git
duplicate method
* test/ruby/test_enum.rb (assert_float_equal): remove overridden definition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
044257c046
Коммит
d7015ae4ee
|
@ -196,11 +196,6 @@ class TestEnumerable < Test::Unit::TestCase
|
|||
assert_equal(105, [5, 7].inject(3, :*))
|
||||
end
|
||||
|
||||
def assert_float_equal(e, v, msg=nil)
|
||||
assert_equal(Float, v.class, msg)
|
||||
assert_equal(e, v, msg)
|
||||
end
|
||||
|
||||
def test_inject_array_plus
|
||||
assert_equal(3, [3].inject(:+))
|
||||
assert_equal(8, [3, 5].inject(:+))
|
||||
|
|
Загрузка…
Ссылка в новой задаче