tests/testthat/test-engines.R

test_that("NULL engines", {
  # See issue https://github.com/tidymodels/parsnip/issues/1242

  expect_snapshot(
    set_engine(nearest_neighbor(), NULL),
    error = TRUE
  )
})
tidymodels/parsnip documentation built on Feb. 19, 2025, 2:10 a.m.