tests/testthat/test-modelMatch.R

test_that("ranger model and default params returns no error", {
  expect_no_error(modelMatch("ranger"))
})

test_that("ranger model and default params returns expected columns", {
  expect_named(modelMatch("ranger"), c("Similarity to Random Forest (ranger)", "Model Abbreviation"))
})

test_that("ranger model and default params returns 11 rows", {
 expect_length(modelMatch("ranger")$`Model Abbreviation`, 11)
})

Try the SAiVE package in your browser

Any scripts or data that you put into this service are public.

SAiVE documentation built on May 29, 2024, 6:48 a.m.