tests/testthat/test-country_codes.r

context("rgb_country_codes")

test_that("returns the correct class", {
  skip_on_cran()
  
  expect_is(rgb_country_codes(country_name="United"), "data.frame")
  expect_is(rgb_country_codes(country_name="the", fuzzy=TRUE), "data.frame")
})
ropensci/rgbif documentation built on April 30, 2024, 12:04 p.m.