tests/testthat/test-my_lm.R

#within test-my_lm.R
test_that("my_lm outputs a table", {
  expect_is(my_lm(realLm, data = mtcars), "table")
})
test_that("non-table input throws error", {
  expect_error(my_lm("a string"))
})
edwardsung63/stat302package documentation built on March 16, 2020, 6:12 a.m.