tests/testthat/test-estimator-helpers.R

test_that("get_weights() errors with wrong estimator", {
  expect_snapshot(
    error = TRUE,
    get_weights(mtcars, "wrong")
  )
})
topepo/yardstick documentation built on April 5, 2025, 10:12 p.m.