ruby-changes:54746
From: usa <ko1@a...>
Date: Thu, 31 Jan 2019 19:52:00 +0900 (JST)
Subject: [ruby-changes:54746] usa:r66963 (ruby_2_4): Fixed [Bug #14731]
usa 2019-01-31 19:51:55 +0900 (Thu, 31 Jan 2019) New Revision: 66963 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66963 Log: Fixed [Bug #14731] Modified files: branches/ruby_2_4/test/ruby/test_float.rb branches/ruby_2_4/version.h Index: ruby_2_4/test/ruby/test_float.rb =================================================================== --- ruby_2_4/test/ruby/test_float.rb (revision 66962) +++ ruby_2_4/test/ruby/test_float.rb (revision 66963) @@ -164,6 +164,8 @@ class TestFloat < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/ruby_2_4/test/ruby/test_float.rb#L164 assert_equal(-31.0*2**-1027, Float("-0x1f"+("0"*600)+".0p-3427")) end + assert_equal(1.0e10, Float("1.0_"+"00000"*Float::DIG+"e10")) + z = "0" * (Float::DIG * 4 + 10) ["long invalid string", "1.0", "1.0e", "1.0e-", "1.0e+"].each do |n| assert_raise(ArgumentError, n += z + "A") {Float(n)} Index: ruby_2_4/version.h =================================================================== --- ruby_2_4/version.h (revision 66962) +++ ruby_2_4/version.h (revision 66963) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_4/version.h#L1 #define RUBY_VERSION "2.4.6" #define RUBY_RELEASE_DATE "2019-01-31" -#define RUBY_PATCHLEVEL 338 +#define RUBY_PATCHLEVEL 339 #define RUBY_RELEASE_YEAR 2019 #define RUBY_RELEASE_MONTH 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/