tests/testthat/test_say_aloha.R

context("say_aloha function")

test_that("function takes one input", {

  testthat::expect_error(say_aloha("Irene", "Mitchell"))

  testthat::expect_is(say_aloha(c("Irene", "Mitchell"), print = FALSE), "character")
})
isteves/r-pkg-intro documentation built on May 22, 2019, 11:50 p.m.