Skip to content

Commit

Permalink
Test that all aliased epochs can be parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
helgee committed Sep 25, 2018
1 parent 3edb83c commit 0f31fe6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/epochs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
@test ep.offset 2eps()
end
@testset "Parsing" begin
@test TAIEpoch("2000-01-01T00:00:00.000") == TAIEpoch(2000, 1, 1)
@test UTCEpoch("2000-01-01T00:00:00.000") == UTCEpoch(2000, 1, 1)
@test UT1Epoch("2000-01-01T00:00:00.000") == UT1Epoch(2000, 1, 1)
@test TTEpoch("2000-01-01T00:00:00.000") == TTEpoch(2000, 1, 1)
@test TCGEpoch("2000-01-01T00:00:00.000") == TCGEpoch(2000, 1, 1)
@test TCBEpoch("2000-01-01T00:00:00.000") == TCBEpoch(2000, 1, 1)
@test TDBEpoch("2000-01-01T00:00:00.000") == TDBEpoch(2000, 1, 1)
@test Epoch("2000-01-01T00:00:00.000 UTC") == UTCEpoch(2000, 1, 1)
@test UTCEpoch("2000-001", "yyyy-DDD") == UTCEpoch(2000, 1, 1)
@test Epoch("2000-001 UTC", "yyyy-DDD ttt") == UTCEpoch(2000, 1, 1)
Expand Down

0 comments on commit 0f31fe6

Please sign in to comment.