tests/testthat/test-tools.R

context("Tools")

test_that("it checks for packages", {
  skip_on_cran()
  expect_true(require_package("coala"))
  expect_error(require_package("2l3ihjrpaiwhf"))
})

test_that("onLoad does not throw an error", {
  expect_equal(coala:::.onLoad(NULL, NULL), NULL)
})
statgenlmu/coala documentation built on March 5, 2024, 10:49 p.m.