tests/testthat/test-my_rf_cv.R

test_that("string input throws error", {
  expect_error(my_rf_cv("a string"))
})
test_that("output is numeric", {
  expect_is(my_rf_cv(5), "numeric")
})
Cherry-ty-Pan/STAT302package documentation built on Dec. 17, 2021, 2 p.m.