tests/testthat/test_hello_world.R

context("hello_world")

test_that("hello_world 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(hello_world() == "Hello, world!", is_true())
}) 
c5sire/scrud documentation built on May 13, 2019, 10:36 a.m.