tests/testthat/test-onetwomany.R

library(testthat)
context("onetwomany")

test_that("we can create a lot of noise", {
  expect_output({
    itsa(1.33e3)
  }, regexp = "package")
  expect_output({
    itsa(1.33e3, nota = TRUE)
  }, regexp = "library")
})
mdsumner/package documentation built on May 22, 2019, 5:04 p.m.