Skip to content

Commit

Permalink
Small typo 🐛 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Jung committed Dec 14, 2024
1 parent 6bfa74f commit 6579574
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-sp_resampleRas.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terra::values(ras_b) <- runif(n = terra::ncell(ras_b))

test_that("sp_resampleRas results in same resolution/extent", {

ras_a_res <- spL_resampleRas(x = ras_a, y = ras_b)
ras_a_res <- spl_resampleRas(x = ras_a, y = ras_b)

expect_true(terra::compareGeom(ras_a_res, ras_b))

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-spl_tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ test_that("Spatial object modifications", {
# NA replacements #
r1[sample(1:terra::ncell(r1),100)] <- NA
expect_no_error(
r1_filled <- sp_replaceGriddedNA(r1, value = 0)
r1_filled <- spl_replaceGriddedNA(r1, value = 0)
)
expect_s4_class(r1_filled, "SpatRaster")
expect_equal(terra::global(r1_filled,"min")[,1], 0) # Should be 0
# Use layer 2 for masking instead
expect_no_error(
r1_filled2 <- sp_replaceGriddedNA(r1,mask = r2)
r1_filled2 <- spl_replaceGriddedNA(r1,mask = r2)
)
expect_s4_class(r1_filled2, "SpatRaster")
# --- #
Expand Down

0 comments on commit 6579574

Please sign in to comment.