aboutsummaryrefslogtreecommitdiffstats
path: root/test/date/test_date.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-07 03:24:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-07 03:24:08 +0000
commitb019719301b068bfc5fdfdbcba4559f0fc6b966c (patch)
tree8183de0474cdb8ccc1aa3854c3a400490cf03dc0 /test/date/test_date.rb
parent320a9e4ce68564fbfe0bc0c385ce76f03921a64a (diff)
downloadruby-b019719301b068bfc5fdfdbcba4559f0fc6b966c.tar.gz
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/trunk@59765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/date/test_date.rb')
-rw-r--r--test/date/test_date.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/date/test_date.rb b/test/date/test_date.rb
index 531495d87e..03e935e299 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