summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-31 11:08:16 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-31 11:08:16 +0000
commitb3009ced333c57456d7d1534b5ecd90b85f15b8e (patch)
tree9768c5bfba31ac7443326c03a61c94540f4e9fe8 /test/ruby
parent5c9d45e6e75c02884d13dc197ab9e7c94c98bc11 (diff)
add 2 assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 d3707bf58d..dc706653a1 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -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