tests/testthat/test-addMissingCwacCounts.R

test_that("we receive an error for non-South African sites", {
  counts <- suppressWarnings(getCwacSiteCounts("03113954"))
  expect_error(addMissingCwacCounts(counts),
               regexp = "This function currently only takes count data from South African sites. See details in ?addMissingCwacCounts",
               fixed = TRUE)
})
AfricaBirdData/CWAC documentation built on Aug. 5, 2024, 12:40 a.m.