tests/testthat/test-null.R

context("null")

test_that("check_null", {
  expect_null(check_null(NULL))
  expect_error(check_null(1), "^1 must be NULL$")
})

Try the checkr package in your browser

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

checkr documentation built on May 1, 2019, 6:59 p.m.