tests/testthat/test-hello_goodbye.R

context('Testing the hello_goodbye function')

test_that('Character input error works', {
  expect_error(hello_goodbye(1234))
  expect_error(hello_goodbye(1*2))
})
threadingdata/tester documentation built on Dec. 23, 2021, 9:58 a.m.