tests/testthat/test-county.R

context("test-county")

test_that("rows and columns match old openintro data", {
  expect_equal(nrow(county), 3142)
  expect_equal(ncol(county), 15)
})

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

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, 2021, 1:06 a.m.