aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_time.rb')
-rw-r--r--test/test_time.rb4
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