tests/testthat/test_raster2tibble.R

# nolint start
context("util_raster2tibble")

maptib <- util_raster2tibble(fractal_landscape)

test_that("basic functionality", {
  expect_error(util_raster2tibble(fractal_landscape), NA)
})

test_that("util_plot behaves like it should", {
  expect_equal(class(maptib), c("tbl_df", "tbl", "data.frame"))
})

# nolint end

Try the landscapetools package in your browser

Any scripts or data that you put into this service are public.

landscapetools documentation built on May 1, 2019, 9:22 p.m.