inst/templates/tpl_tst.R

context("{{title}}")

test_that("{{title}} function operates well", {
  # The following function should be used to reduce time on CRAN by avoiding running a test since time on CRAN is limited.
  # skip_on_cran()
  
  expect_that({{title}}() == "Hello, world!", is_true())
}) 
c5sire/ciptools documentation built on May 13, 2019, 10:31 a.m.