This test has the comment "outcome is not a factor" so I would expect the snapshot to capture a related error
|
# outcome is not a factor: |
|
expect_snapshot( |
|
error = TRUE, |
|
res <- fit( |
|
lc_basic, |
|
funded_amnt ~ term, |
|
data = lending_club, |
|
engine = "C5.0", |
|
control = ctrl |
|
) |
|
) |
However, the snapshot shows:
|
# C5.0 execution |
|
|
|
Code |
|
res <- fit(lc_basic, funded_amnt ~ term, data = lending_club, engine = "C5.0", |
|
control = ctrl) |
|
Condition |
|
Error in `.convert_form_to_xy_fit()`: |
|
! The argument `engine` cannot be used to create the data. |
|
Possible arguments are subset or weights. |
This test has the comment "outcome is not a factor" so I would expect the snapshot to capture a related error
parsnip/tests/testthat/test-boost_tree_C5.0.R
Lines 38 to 48 in a4bb370
However, the snapshot shows:
parsnip/tests/testthat/_snaps/boost_tree_C5.0.md
Lines 1 to 9 in a4bb370