Skip to content

Commit

Permalink
Test edge cases for Date constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
helgee committed Aug 30, 2018
1 parent 67ec4d3 commit d11cf14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/astrodates.jl
Expand Up @@ -43,4 +43,7 @@ const REFERENCES = (
@test_throws ArgumentError Time(23, 60, 59.0)
@test_throws ArgumentError Time(23, 59, 61.0)
@test_throws ArgumentError Time(86401, 0)

@test Date(2000, 1) == Date(2000, 1, 1)
@test Date(-2000, 1) == Date(-2000, 1, 1)
end

0 comments on commit d11cf14

Please sign in to comment.