Skip to content

Commit 7391b8d

Browse files
author
hhaensel
committed
add tests for pytimedelta
1 parent 60e0daa commit 7391b8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/Core.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,9 @@ end
698698
x7 = pydatetime(DateTime(2001, 2, 3, 4, 5, 6, 7))
699699
@test pyisinstance(x7, dt.datetime)
700700
@test pyeq(Bool, x7, dt.datetime(2001, 2, 3, 4, 5, 6, 7000))
701+
x8 = pydatetime(2001, 2, 3, 4, 5, 6, 7)
702+
dx = pytimedelta(366, 3661, 1)
703+
pyeq(Bool, x8 - x6, dx)
701704
end
702705

703706
@testitem "code" begin

0 commit comments

Comments
 (0)