diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-15 08:53:40 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-15 08:53:40 +0000 |
commit | a88f8e34b2e932a0f70eb3dd026fdf80a4d2c05a (patch) | |
tree | 215b18ef06a9ee7641ed531cf50656071a37f39b /test | |
parent | 6e7f39829d6ce1cc80964d4cab85e1d33f1e1595 (diff) |
merge revision(s) 66735: [Backport #15506]
Fix mday overflow
[ruby-core:90897] [Bug #15506]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@66825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/test_time.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_time.rb b/test/test_time.rb index 138766443b..fb30bea723 100644 --- a/test/test_time.rb +++ b/test/test_time.rb @@ -503,6 +503,10 @@ class TestTimeExtension < Test::Unit::TestCase # :nodoc: assert_equal(0, t.hour) assert_equal(0, t.min) assert_equal(0, t.sec) + t = Time.strptime("2018-091", "%Y-%j") + assert_equal(2018, t.year) + assert_equal(4, t.mon) + assert_equal(1, t.day) end def test_nsec |