Skip to content

Commit

Permalink
fix test on julia 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Dec 13, 2018
1 parent 01c48f5 commit 2ffaba4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_time.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ffaba4

Please sign in to comment.