Open EmilHvitfeldt opened 3 months ago
as an example the following test https://github.com/tidymodels/parsnip/blob/main/tests/testthat/test_decision_tree.R#L15-L18
expect_snapshot_error({ bt <- decision_tree(cost_complexity = -1) %>% set_engine("rpart") fit(bt, class ~ ., hpc) })
is expected to test that cost_complexity isn’t good, but it instead tests that the mode isn’t set
cost_complexity
#> Error in `fit()`: #> ! Please set the mode in the model specification.
as an example the following test https://github.com/tidymodels/parsnip/blob/main/tests/testthat/test_decision_tree.R#L15-L18
is expected to test that
cost_complexity
isn’t good, but it instead tests that the mode isn’t set