Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Nov 13, 2024
1 parent 32f5f31 commit bcb345b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ gaMi = replace_missing(ga)
@test all(isequal.(dNaN, [NaN32 7.0f0; 2.0f0 NaN32]))
rm("test.tif")
stNaN = replace_missing(st, NaN32; filename="teststack.tif")
@test all(map(stNaN[Band(1)], (a=[NaN32 7.0f0; 2.0f0 NaN32], b=[1.0 0.4; 2.0 NaN])) do x, y
@test all(maplayers(stNaN[Band(1)], (a=[NaN32 7.0f0; 2.0f0 NaN32], b=[1.0 0.4; 2.0 NaN])) do x, y
all(x .=== y)
end)
rm("teststack_a.tif")
Expand Down Expand Up @@ -755,4 +755,4 @@ test = rebuild(ga; name = :test)

@test_throws "strictly positive" Rasters.sample(StableRNG(123), test, 3, skipmissing = true, replace = false)
@test_throws "Cannot draw" Rasters.sample(StableRNG(123), test, 5, replace = false)
end
end

0 comments on commit bcb345b

Please sign in to comment.