tests/testthat/test_hello_world.R

context("Hello World Test")

test_that("hello_world() returns proper text", {
  expect_equal(hello_world(), "Hello World")
})
hms-dbmi/r_testing documentation built on July 13, 2017, 12:41 a.m.