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 May 14, 2019, 10:34 a.m.