Skip to content

Commit

Permalink
just another test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacronemeyer committed Aug 14, 2023
1 parent aadc36f commit bad7c38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/date_strptime_scenarios.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def test_date_strptime_day_of_year_without_year
assert_equal Date.strptime("153", '%j'), Date.new(1984, 6, 1)
end

def test_date_strptime_day_of_year_with_year
assert_equal Date.strptime("1999 153", '%Y %j'), Date.new(1999, 6, 2)
end


def test_date_strptime_without_specifying_format
assert_equal Date.strptime('1999-04-14'), Date.new(1999, 4, 14)
end
Expand Down

0 comments on commit bad7c38

Please sign in to comment.