Skip to content

Commit

Permalink
Add tests for date parsing (JuliaLang#10817)
Browse files Browse the repository at this point in the history
  • Loading branch information
wookay authored and ranjanan committed Aug 8, 2016
1 parent 9e32372 commit 7e3f52d
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 7e3f52d

Please sign in to comment.