tests/testthat/test-my_lm.R

test_that("multiplication works", {
  expect_equal(2 * 2, 4)
})

test_that("Function returns double", {
  expect_type(object = my_lm(lifeExp ~ gdpPercap + continent, my_gapminder), type = "double")
})
oliverlinehan41/project3package documentation built on Dec. 22, 2021, 4:21 a.m.