From 2ffaba47917960affd6ac252f2c97e3dff676ef5 Mon Sep 17 00:00:00 2001 From: Alexander Barth Date: Thu, 13 Dec 2018 11:49:11 +0100 Subject: [PATCH] fix test on julia 0.6 --- test/test_time.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_time.jl b/test/test_time.jl index fd401afb..3bac85e9 100644 --- a/test/test_time.jl +++ b/test/test_time.jl @@ -364,15 +364,15 @@ end # time ranges -@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):Dates.Day(1):DateTimeNoLeap(2000, 12, 31)) == 365 +@test length(DateTimeNoLeap(2000, 01, 01):Dates.Month(1):DateTimeNoLeap(2000, 12, 31)) == 12 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 + @test length(T(2000, 01, 01):Dates.Month(1):T(2001, 1, 1)) == 13 + @test length(T(2000, 01, 01):Dates.Year(1):T(2001, 1, 1)) == 2 end # if @isdefined DataArrays