mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_time.rb: added tests for [ruby-dev:22614] and
[ruby-dev:22617]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c24cfc6b43
commit
8ccba1d12f
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Jan 19 16:30:53 2004 akira yamada <akira@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_time.rb: added tests for [ruby-dev:22614] and
|
||||
[ruby-dev:22617].
|
||||
|
||||
Mon Jan 19 13:09:21 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/extmk.rb, win32/Makefile.sub, win32/configure.bat,
|
||||
|
|
|
@ -6,6 +6,7 @@ class TestTime < Test::Unit::TestCase
|
|||
Time.utc(2000, 3, 21, 6, 30))
|
||||
assert_equal(Time.utc(2000, 3, 21, 3, 30) + (-3 * 3600),
|
||||
Time.utc(2000, 3, 21, 0, 30))
|
||||
assert_equal(0, (Time.at(1.1) + 0.9).usec)
|
||||
end
|
||||
|
||||
def test_time_subt()
|
||||
|
@ -13,6 +14,7 @@ class TestTime < Test::Unit::TestCase
|
|||
Time.utc(2000, 3, 21, 0, 30))
|
||||
assert_equal(Time.utc(2000, 3, 21, 3, 30) - (-3 * 3600),
|
||||
Time.utc(2000, 3, 21, 6, 30))
|
||||
assert_equal(900000, (Time.at(1.1) - 0.2).usec)
|
||||
end
|
||||
|
||||
def test_time_time()
|
||||
|
|
Loading…
Reference in a new issue