mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c5fe339b55
commit
4be85c0ede
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ class TestTime < Test::Unit::TestCase
|
|||
assert_equal(0x7fffffff, Time.utc(2038, 1, 19, 3, 14, 7).tv_sec)
|
||||
else
|
||||
# leap seconds supported.
|
||||
assert_equal(2, Time.utc(1972, 7, 1, 0, 0, 0) - Time.utc(1972, 6, 30, 23, 59, 59))
|
||||
assert_equal(78796800, Time.utc(1972, 6, 30, 23, 59, 60).tv_sec)
|
||||
assert_equal(78796801, Time.utc(1972, 7, 1, 0, 0, 0).tv_sec)
|
||||
assert_equal(78796802, Time.utc(1972, 7, 1, 0, 0, 1).tv_sec)
|
||||
|
|
Loading…
Add table
Reference in a new issue