Skip to content

Commit

Permalink
Make DD and Rasters polygonize tests more evil
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 authored Aug 27, 2024
1 parent e9e024a commit 8f0cacf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/methods/polygonize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ end
end
@testset "DimensionalData" begin
data = rand(1:4, 100, 100) .== 1
evil = DimensionalData.DimArray(data, (DimensionalData.X(1:100), DimensionalData.Y(1:100)))
evil = DimensionalData.DimArray(data, (DimensionalData.X(-100:-1), DimensionalData.Y(-100:-1)))
data_mp = polygonize(data)
evil_mp = @test_nowarn polygonize(evil)
@test GO.equals(data_mp, evil_mp)
end
@testset "Rasters" begin
data = rand(1:4, 100, 100) .== 1
evil = Rasters.Raster(data; dims = (DimensionalData.X(1:100), DimensionalData.Y(1:100)), crs = Rasters.GeoFormatTypes.EPSG(4326))
evil = Rasters.Raster(data; dims = (DimensionalData.X(-100:-1), DimensionalData.Y(-90:9)), crs = Rasters.GeoFormatTypes.EPSG(4326))
data_mp = polygonize(data)
evil_mp = @test_nowarn polygonize(evil)
@test GO.equals(data_mp, evil_mp)
Expand Down

0 comments on commit 8f0cacf

Please sign in to comment.