Skip to content

Commit

Permalink
Test isfinite for Period instances
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Sep 8, 2020
1 parent aa5c45f commit 04d4f26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stdlib/Dates/test/periods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ using Test
@test sign(t) == sign(t2) == 1
@test sign(-t) == sign(-t2) == -1
@test sign(Dates.Year(0)) == 0
@test isfinite(t) == true
end
@testset "div/mod/gcd/lcm/rem" begin
@test Dates.Year(10) % Dates.Year(4) == Dates.Year(2)
Expand Down

0 comments on commit 04d4f26

Please sign in to comment.