tests/testthat/test-county_2019.R

context("test-county_2019")

test_that("rows and columns match expected dimensions", {
  expect_equal(nrow(county_2019), 3142)
  expect_equal(ncol(county_2019), 95)
})

test_that("column names are lower case", {
  expect_identical(names(county_2019), tolower(names(county_2019)))
})

Try the usdata package in your browser

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

usdata documentation built on June 22, 2024, 9:57 a.m.