tests/testthat/test_hello.R

library(testthat)

# Works with one name
expect_that(hello("Hubert"), equals("Hello Hubert"))

# Works with two name
expect_that(hello(c("Hubert", "Toto")), equals("Hello Hubert"))
HLeviel/hello documentation built on May 6, 2019, 9:47 p.m.