tests/testthat/test_checkTRUE.R

context("checkTRUE")

test_that("checkTRUE", {
  expect_succ_all(TRUE, TRUE)
  expect_fail_all(TRUE, 1)

  expect_false(test_true(NA))
  expect_true(test_true(NA, na.ok = TRUE))
})

Try the checkmate package in your browser

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

checkmate documentation built on Sept. 11, 2024, 8:40 p.m.