diff --git a/test/test_time.jl b/test/test_time.jl index 5a013d79..fd401afb 100644 --- a/test/test_time.jl +++ b/test/test_time.jl @@ -366,11 +366,13 @@ end @test length(DateTimeNoLeap(2000, 01, 01):Day(1):DateTimeNoLeap(2000, 12, 31)) == 365 @test length(DateTimeNoLeap(2000, 01, 01):Month(1):DateTimeNoLeap(2000, 12, 31)) == 12 -@test length(DateTimeNoLeap(2000, 01, 01):Year(1):DateTimeNoLeap(2001, 1, 1)) == 2 for T in [DateTimeStandard, DateTimeJulian, DateTimeProlepticGregorian, DateTimeAllLeap, DateTimeNoLeap, DateTime360Day] + # end date is inclusive + @test length(T(2000, 01, 01):Month(1):T(2001, 1, 1)) == 13 + @test length(T(2000, 01, 01):Year(1):T(2001, 1, 1)) == 2 end # if @isdefined DataArrays