Skip to content

Commit

Permalink
satisfy coverage checker
Browse files Browse the repository at this point in the history
  • Loading branch information
nateybear committed Dec 17, 2023
1 parent f3b5d45 commit c74af34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,11 @@ const PyInt = pyversion < v"3" ? Int : Clonglong
end

@test roundtripeq(Dates.Date(2012,3,4))
@test_throws ArgumentError convert(Dates.Date, PyObject(42))
@test roundtripeq(Dates.DateTime(2012,3,4, 7,8,9,11))
@test_throws ArgumentError convert(Dates.DateTime, PyObject(42))
@test roundtripeq(Dates.Time(7,8,9,11))
@test_throws ArgumentError convert(Dates.Time, PyObject(42))
@test roundtripeq(Dates.Millisecond(typemax(Int32)))
@test roundtripeq(Dates.Millisecond(typemin(Int32)))
@test roundtripeq(Dates.Second, Dates.Second(typemax(Int32)))
Expand Down

0 comments on commit c74af34

Please sign in to comment.