tests/testthat/test-my_f_to_c.R

test_that("f_to_c works mathematically", {
  expect_equal(f_to_c(32), 0)
  expect_equal(f_to_c(212), 100)
})
test_that("non-numeric input throws error", {
  expect_error(f_to_c("a string"))
})
txqtiffany/STAT302package documentation built on Dec. 23, 2021, 1:03 p.m.