diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-27 09:08:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-27 09:08:29 +0000 |
commit | 2451d735a79d7c5f4bdb019335b7083bd081df69 (patch) | |
tree | 9dafb219fc3720f433db6e468c89ccb6f4aafc7d /test | |
parent | 0ebec8cf722da3e3c1c557ae28cce8943eef0d4d (diff) | |
download | ruby-2451d735a79d7c5f4bdb019335b7083bd081df69.tar.gz |
* time.c (leap_year_v_p): fixed typo. [ruby-dev:42631]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_time.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index 83f5907f99..8c96a0d2cd 100644 --- a/test/ruby/test_time.rb +++ b/test/ruby/test_time.rb @@ -19,6 +19,10 @@ class TestTime < Test::Unit::TestCase assert_equal(Time.utc(2000,2,10), Time.new(2000,2,9, 13,0,0, -3600*11)) assert_equal(Time.utc(2000,2,10), Time.new(2000,2,10, 11,0,0, "+11:00")) assert_equal(Rational(1,2), Time.new(2000,2,10, 11,0,5.5, "+11:00").subsec) + bug4090 = '[ruby-dev:42631]' + tm = [2001,2,28,23,59,30] + t = Time.new(*tm, "-12:00") + assert_equal([2001,2,28,23,59,30,-43200], [t.year, t.month, t.mday, t.hour, t.min, t.sec, t.gmt_offset], bug4090) end def test_time_add() |