tests/testthat/test-bboxSpatialPolygon.R

context("bboxSpatialPolygon")

test_that("Test bboxSpatialPolygon function", {

  boundingbox <- terra::ext(c(-180, +180, -50, +50))
  bbSP <- bboxSpatialPolygon(boundingbox = boundingbox)

  expect_that("SpatVector" %in% class(bbSP), equals(TRUE))

})
ropensci/hddtools documentation built on July 24, 2022, 6:29 p.m.