tests/testthat/test-utils.R

context("utils")

test_that("warn", {
  foo <- "bar"
  expect_warning(
    warn("this is {foo}"),
    "this is 'bar'"
  )
})
r-lib/pkginstall documentation built on April 9, 2020, 6:11 a.m.