tests/testthat/test_include.R

context("registered c functions")

test_that("include of registered C functions works", {
  skip_on_cran()
  skip_on_travis()
  devtools::install_github("mllg/checkmate-test-include")
  library(checkmate.test.include)

  expect_true(reexported_qtest(1, "N1"))
  expect_false(reexported_qtest(1, "b"))

  x = pi
  expect_identical(reexported_qassert(x, "N1"), x)
  expect_error(reexported_qassert(x, "b", "foo"), "foo")
})

Try the checkmate package in your browser

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

checkmate documentation built on Oct. 25, 2023, 5:06 p.m.