tests/testthat/test-chk.R

test_that("chk_color", {
  expect_null(chk_color("green"))
  expect_invisible(chk_color("green"))
  chk::expect_chk_error(chk_color(1))
})

test_that("chk_colour", {
  expect_null(chk_colour("green"))
  expect_invisible(chk_colour("green"))
  chk::expect_chk_error(chk_colour(1))
})

Try the tinter package in your browser

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

tinter documentation built on April 19, 2020, 4:15 p.m.