Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
tiemvanderdeure committed Jan 30, 2025
1 parent 009515f commit 0f990c2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/worldclim-future.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,12 @@ end

@test isfile(date_path)
end


@testset "WorldClim dates" begin
bioclim_name = "wc2.1_10m_bioc_MRI-ESM2-0_ssp126_2041-2060.tif"
@test rastername(WorldClim{Future{BioClim,CMIP6,MRI_ESM2_0,SSP126}}, 5; date=Date(2041), res = "10m") ==
rastername(WorldClim{Future{BioClim,CMIP6,MRI_ESM2_0,SSP126}}, 5; date=Date(2060), res = "10m") ==
bioclim_name

end

0 comments on commit 0f990c2

Please sign in to comment.