tests/testthat/test-bdc_get_world_map.R

x <- bdc_get_world_map()

test_that("returning  a polygon data frame", {
  testthat::expect_equal(class(x)[1], "SpatialPolygonsDataFrame")
})

test_that("checking variables", {
  testthat::expect_equal(names(x), c("name_long", "iso2c"))
})
brunobrr/bdc documentation built on Nov. 21, 2024, 4:18 a.m.