1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_range.rb (TestRange#test_step_ruby_core_35753):

avoid float error. [ruby-core:35804]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2011-04-18 03:17:02 +00:00
parent 1891d8dd3b
commit b5897263eb
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Mon Apr 18 12:15:46 2011 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_range.rb (TestRange#test_step_ruby_core_35753):
avoid float error. [ruby-core:35804]
Sun Apr 17 00:20:14 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_{core,strftime}.c: use struct tmx instead of vtm.

View file

@ -186,9 +186,9 @@ class TestRange < Test::Unit::TestCase
assert_equal(6, (1...6.3).step.to_a.size)
assert_equal(5, (1.1...6).step.to_a.size)
assert_equal(5, (1...6).step(1.1).to_a.size)
assert_equal(3, (1.0...6.3).step(1.8).to_a.size)
assert_equal(3, (1.0...6.4).step(1.8).to_a.size)
assert_equal(4, (1.0...6.5).step(1.8).to_a.size)
assert_equal(3, (1.0...5.4).step(1.5).to_a.size)
assert_equal(3, (1.0...5.5).step(1.5).to_a.size)
assert_equal(4, (1.0...5.6).step(1.5).to_a.size)
end
def test_each