tests/testthat/test-list_boundaries.R

test_that("Verify output of list_boundaries() is correct", {
  boundaries <- list_boundaries()
  
  # Do we get a character vector?
  expect_vector(boundaries, ptype = character())

  # Has data been loaded into the vector?
  expect_gt(length(boundaries), 0)

  # Are there any NA values?
  expect_in(is.na(boundaries), c(FALSE))
})

Try the sgapi package in your browser

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

sgapi documentation built on June 8, 2025, 11:09 a.m.