Skip to content

Commit

Permalink
Merge pull request #17836 from wookay/test_date_parsing
Browse files Browse the repository at this point in the history
Add tests for date parsing (#10817)
  • Loading branch information
tkelman authored Aug 6, 2016
2 parents 3a9748a + f2863ef commit 7a66efb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/dates/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,8 @@ let
@test DateTime(ds, format) == dt
@test DateTime(ds, escaped_format) == dt
end

# Issue 10817
@test Dates.Date("Apr 01 2014", "uuu dd yyyy") == Dates.Date(2014,4,1)
@test_throws ArgumentError Dates.Date("Apr 01 xx 2014", "uuu dd zz yyyy")
@test_throws ArgumentError Dates.Date("Apr 01 xx 2014", "uuu dd yyyy")

0 comments on commit 7a66efb

Please sign in to comment.