tests/testthat/test-flow-fcns_region-parsing.R

library(testthat)

library(diVis)
# devtools::load_all(export_all = F)


# getting smaller regions ------------------------------------------------------
get_sub.regions

test_that("get sub regions", {
  expect_equal(
    get_sub.regions("region", region_types),
    c("division", "state", "cz", "county"))

  expect_equal(
    get_sub.regions("cz", region_types),
    c("county"))

  expect_equal(
    get_sub.regions("county", region_types),
    as.character())
})
kmcd39/diVis documentation built on March 9, 2021, 5:24 p.m.