Skip to content

Commit

Permalink
add tests for pytimedelta
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Jan 19, 2025
1 parent 60e0daa commit 7391b8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,9 @@ end
x7 = pydatetime(DateTime(2001, 2, 3, 4, 5, 6, 7))
@test pyisinstance(x7, dt.datetime)
@test pyeq(Bool, x7, dt.datetime(2001, 2, 3, 4, 5, 6, 7000))
x8 = pydatetime(2001, 2, 3, 4, 5, 6, 7)
dx = pytimedelta(366, 3661, 1)
pyeq(Bool, x8 - x6, dx)
end

@testitem "code" begin
Expand Down

0 comments on commit 7391b8d

Please sign in to comment.