tests/testthat/test-f_to_c.R

# within test-f_to_c.R
test_that("f_to_c works mathmatically", {
  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"))
})
alishaluo/STAT302package documentation built on March 17, 2020, 4:37 a.m.