tests/testthat/test-my_rf_cv.R

test_that("my_rf_cv returns a numeric Estimate", {
  expect_type(my_rf_cv(5),"double")
})

test_that("inappropriate input throw error", {
  expect_error(my_rf_cv("a string"))
})
eunicezh/STAT302package documentation built on Dec. 20, 2021, 6:43 a.m.