Skip to content

Commit bad7c38

Browse files
just another test
1 parent aadc36f commit bad7c38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/date_strptime_scenarios.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ def test_date_strptime_day_of_year_without_year
1818
assert_equal Date.strptime("153", '%j'), Date.new(1984, 6, 1)
1919
end
2020

21+
def test_date_strptime_day_of_year_with_year
22+
assert_equal Date.strptime("1999 153", '%Y %j'), Date.new(1999, 6, 2)
23+
end
24+
25+
2126
def test_date_strptime_without_specifying_format
2227
assert_equal Date.strptime('1999-04-14'), Date.new(1999, 4, 14)
2328
end

0 commit comments

Comments
 (0)