tests/testthat/test_hello_world.R

context("hello_world")

test_that("basic tests for  hello_world", {
  expect_that( hello_world(), equals("Hello, world!"))
  expect_that( hello_world("mundo"), equals("Hello, mundo!"))
  expect_that( hello_world(""), equals("") ) 
  expect_that( hello_world(1), throws_error())
})
c5sire/ghk documentation built on May 13, 2019, 10:35 a.m.