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

* test/ruby/test_time.rb: suppress warning during test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2008-08-28 14:55:53 +00:00
parent 846f142a17
commit 5ef4c56784
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Thu Aug 28 23:55:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
* test/ruby/test_time.rb: suppress warning during test.
Thu Aug 28 23:50:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
* test/ruby/test_time.rb (test_strftime): make test for %a independent

View file

@ -3,6 +3,15 @@ require 'rational'
require 'timeout'
class TestTime < Test::Unit::TestCase
def setup
@verbose = $VERBOSE
$VERBOSE = nil
end
def teardown
$VERBOSE = @verbose
end
def test_time_add()
assert_equal(Time.utc(2000, 3, 21, 3, 30) + 3 * 3600,
Time.utc(2000, 3, 21, 6, 30))