tests/testthat/test-my_rf_cv.R

test_that("output is numeric", {
  expect_is(my_rf_cv(5), "numeric")
})

test_that("non numeric input for k throws an error", {
  expect_error(my_rf_cv("a"))
})
yinuotxie/package302 documentation built on April 29, 2023, 7:13 a.m.