tests/testthat/test-06-PlanningUnitPoints.R

context("06-PlanningUnitPoints")

test_that("PlanningUnitPoints generator function", {
  # create object
  pups <- PlanningUnitPoints(matrix(runif(100), ncol = 2), ids = seq_len(50))
  # check object
  expect_is(pups, "PlanningUnitPoints")
  expect_equal(ncol(pups@coords), 2)
  expect_equal(nrow(pups@coords), 50)
})
jeffreyhanson/raptr documentation built on Feb. 3, 2024, 10:56 p.m.