tests/testthat/test-my_rf_cv.R

test_that("my_rf_cv works mathematically", {
  expect_is(my_rf_cv(5), "numeric")
})

test_that("non numeric input throws error", {
  expect_error(my_rf_cv("a string"))
})
arielle-min/project3package documentation built on March 22, 2021, 1:47 p.m.