Skip to content

Commit

Permalink
Test day of year parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
helgee committed Aug 30, 2018
1 parent 04a6ae9 commit d939bcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/epochs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
@testset "Parsing" begin
@test UTCEpoch("2000-01-01T00:00:00.000") == UTCEpoch(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)
@test_throws ArgumentError Epoch("2000-01-01T00:00:00.000")
end
@testset "Arithmetic" begin
Expand Down

0 comments on commit d939bcc

Please sign in to comment.