diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-30 04:43:20 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-30 04:43:20 +0000 |
commit | ac899ff9c82f0b48c001d6e76b300264aecd4bca (patch) | |
tree | 8cd45006d914717295623554b3ce87b2ce4c014f | |
parent | bc5aeb987f21514f2a96cb3f5ffad33855612c8a (diff) |
merges r31304 from trunk into ruby_1_9_2.
--
* 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/branches/ruby_1_9_2@31808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_range.rb | 6 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 9 insertions, 4 deletions
@@ -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] + Fri Apr 15 15:10:29 2011 Akinori MUSHA <knu@iDaemons.org> * lib/uri/generic.rb (#route_from_path): Fix a bug where diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb index 12ba47c219..d45df8f820 100644 --- a/test/ruby/test_range.rb +++ b/test/ruby/test_range.rb @@ -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 @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_PATCHLEVEL 232 +#define RUBY_PATCHLEVEL 233 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 |