diff --git a/test/dates/io.jl b/test/dates/io.jl index 11aea94137a1b..bdcade050c16f 100644 --- a/test/dates/io.jl +++ b/test/dates/io.jl @@ -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")