Skip to content

Commit

Permalink
Refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Aug 21, 2024
1 parent c28c221 commit 8ac65ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/io/geotiff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@test crs(gtb.geometry) <: Cartesian
@test propertynames(gtb) == [:COLOR, :geometry]
@test eltype(gtb.COLOR) <: Colorant
@test gtb.geometry isa Meshes.TransformedGrid
@test gtb.geometry isa TransformedGrid
@test size(gtb.geometry) == (100, 100)

# the "test_gray.tif" file is an upscale of a NaturalEarth file
Expand All @@ -15,7 +15,7 @@
@test crs(gtb.geometry) <: Cartesian
@test propertynames(gtb) == [:COLOR, :geometry]
@test eltype(gtb.COLOR) <: Colorant
@test gtb.geometry isa Meshes.TransformedGrid
@test gtb.geometry isa TransformedGrid
@test size(gtb.geometry) == (108, 108)

# the "utm.tif" file is from the GeoTIFF/test-data repo
Expand All @@ -25,7 +25,7 @@
@test crs(gtb.geometry) <: UTMNorth{17}
@test propertynames(gtb) == [:COLOR, :geometry]
@test eltype(gtb.COLOR) <: Colorant
@test gtb.geometry isa Meshes.TransformedGrid
@test gtb.geometry isa TransformedGrid
@test size(gtb.geometry) == (100, 100)
end

Expand Down
2 changes: 1 addition & 1 deletion test/io/images.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@testset "Images" begin
@testset "load" begin
gtb = GeoIO.load(joinpath(datadir, "image.jpg"))
@test gtb.geometry isa Meshes.TransformedGrid
@test gtb.geometry isa TransformedGrid
@test length(gtb.color) == length(gtb.geometry)
end

Expand Down

0 comments on commit 8ac65ff

Please sign in to comment.