Skip to content

Commit

Permalink
Test infinites
Browse files Browse the repository at this point in the history
  • Loading branch information
helgee committed Jul 1, 2018
1 parent 31fc686 commit 2591719
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/epochs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@
ep = Epoch2{TDB}(100000, 1e-18)
ep1 = Epoch2{TDB}(ep, 100 * 365.25 * 86400)
@test ep.offset == ep1.offset

ep1 = Epoch2{TDB}(ep, Inf)
@test ep1.epoch == typemax(Int64)
@test ep1.offset == Inf
ep1 = Epoch2{TDB}(ep, -Inf)
@test ep1.epoch == typemin(Int64)
@test ep1.offset == -Inf
end

0 comments on commit 2591719

Please sign in to comment.