tests/testthat/test_hello.R

context("Hello is working as expected")

test_that("hello() works as expected",{
  expect_output(hello(), 'Hello world')
  expect_error(hello(argument))
})
Swarchal/fridayDemo documentation built on May 9, 2019, 3:25 p.m.