summaryrefslogtreecommitdiff
path: root/test/ruby/test_time.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-31 19:56:04 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-31 19:56:04 +0000
commitc97f5f514a63f2b5ed909aec270e89efb0c2703d (patch)
treecd37557dd0be4d212cc608f3657e414616c1d23d /test/ruby/test_time.rb
parente758c3fbce1b3be14660fcd0d1492ad6e91e01d6 (diff)
* time.c (rb_big_abs_find_minbit): fix handling the last word.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_time.rb')
-rw-r--r--test/ruby/test_time.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index 108fcdbc20..cb17f416ee 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -181,6 +181,8 @@ class TestTime < Test::Unit::TestCase
assert_equal(-146138510344, t.year)
t = Time.at(-0x5000_0000_0000_0001)
assert_equal(-182673138422, t.year)
+ t = Time.at(-0x6000_0000_0000_0000)
+ assert_equal(-219207766501, t.year)
end
def test_at2