tests/testthat/test_us_na.R

library(tidyverse)
library(dbr)
library(testthat)

context("NA BEING HANDLED CORRECTLY")

test_that("US IS NULL LATER YEARS", {

  w <- wicher::wiche_enrollments

  d <- w %>% filter(grade == "1",
                    year == 2022,
                    race == "all",
                    sector == "all",
                    location == "us")

  expect_true(is.na(d$n))

})
mattjcamp/wicher documentation built on May 6, 2019, 12:05 a.m.