tests/testthat/test-site_masked.R

test_that("number rows & columns correct", {
  expect_equal(
    dim(site_masked),
    c(3560L, 2L)
  )
})

test_that("variable names correct", {
  expect_equal(
    names(site_masked),
    c("who", "site_masked")
  )
})

test_that("variable class correct", {
  expect_equal(
    sapply(site_masked, class),
    c(who = "integer", site_masked = "factor")
  )
})

Try the public.ctn0094data package in your browser

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

public.ctn0094data documentation built on Oct. 1, 2023, 5:08 p.m.