git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2004-03-31 11:08:16 +00:00
Родитель 5c9d45e6e7
Коммит b3009ced33
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -65,7 +65,9 @@ class TestTime < Test::Unit::TestCase
def test_huge_difference # [ruby-dev:22619]
if negative_time_t?
assert_equal(Time.at(-0x80000000), Time.at(0x7fffffff) - 0xffffffff)
assert_equal(Time.at(-0x80000000), Time.at(0x7fffffff) + (-0xffffffff))
assert_equal(Time.at(0x7fffffff), Time.at(-0x80000000) + 0xffffffff)
assert_equal(Time.at(0x7fffffff), Time.at(-0x80000000) - (-0xffffffff))
end
end
end