1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add 2 assertions.

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
parent 5c9d45e6e7
commit b3009ced33

View file

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