tests/testthat/test_tibble2raster.R

# nolint start
context("util_tibble2raster")

maptib <- util_raster2tibble(fractal_landscape)
mapras <- util_tibble2raster(maptib)

test_that("basic functionality", {
  expect_error(util_tibble2raster(maptib), NA)
})

test_that("nlm_edgegradient behaves like it should", {
  expect_that(mapras, is_a("RasterLayer"))
})
# nolint end
ropensci/landscapetools documentation built on Oct. 12, 2022, 6:19 p.m.