tests/testthat/test-my_rf_cv.R

test_that("my_rf_cv gives correct output type", {
  expect_type(my_rf_cv(3), "double")
})
test_that("my_rf_cv throws error if input is incorrect type", {
  expect_error(my_rf_cv("string"))
})
thulinjt/project3package documentation built on March 22, 2021, 2:41 p.m.