tests/testthat/test_output.R

library(rtest)
context("Output")

test_that("hello() prints 'Hello, world!'", {
  expect_output(hello(), "Hello, world!")
})
wenshuoliu/rtest documentation built on May 4, 2019, 5:21 a.m.