diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-10 12:33:09 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-10 12:33:09 +0000 |
commit | cdf993100566b2a42ffb040f0f2b7a900fdc5ff7 (patch) | |
tree | 3c61a71da04198a68375aee80a5106ac1c204e85 /test | |
parent | 5edb9fab69a8ccdd8e9b0c98e30d3051e2f2634b (diff) |
merge revision(s) 59765: [Backport #13877]
ruby.h: unnormalized Fixnum value
* include/ruby/ruby.h (ST2FIX): fix unnormalized Fixnum value bug
on mingw/mswin. [ruby-core:82687] [Bug #13877]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@59823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/bigdecimal/test_bigdecimal.rb | 1 | ||||
-rw-r--r-- | test/date/test_date.rb | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb index 80ffc3fedd..60f9f70068 100644 --- a/test/bigdecimal/test_bigdecimal.rb +++ b/test/bigdecimal/test_bigdecimal.rb @@ -549,6 +549,7 @@ class TestBigDecimal < Test::Unit::TestCase a.each_with_index do |x, i| assert_equal(i, h[x]) end + assert_instance_of(String, b.hash.to_s) end def test_marshal diff --git a/test/date/test_date.rb b/test/date/test_date.rb index 247cce1eaf..ba3fbbffaf 100644 --- a/test/date/test_date.rb +++ b/test/date/test_date.rb @@ -129,6 +129,8 @@ class TestDate < Test::Unit::TestCase assert_equal(3, h.size) assert_equal(9, h[Date.new(1999,5,25)]) assert_equal(9, h[DateTime.new(1999,5,25)]) + + assert_instance_of(String, Date.new(1999,5,25).hash.to_s) end def test_freeze |