Skip to content

Commit d197506

Browse files
committed
remove redundant tests
1 parent d270b12 commit d197506

File tree

6 files changed

+0
-58
lines changed

6 files changed

+0
-58
lines changed

tests/testthat/_snaps/boost_tree_xgboost.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66
Error:
77
! object 'novar' not found
88

9-
# xgboost execution, regression
10-
11-
Code
12-
res <- parsnip::fit_xy(car_basic, x = mtcars[, num_pred], y = factor(mtcars$vs),
13-
control = ctrl)
14-
Condition
15-
Error in `check_outcome()`:
16-
! For a regression model, the outcome should be `numeric`, not a `factor`.
17-
189
# submodel prediction
1910

2011
Code

tests/testthat/_snaps/mars.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@
3131
x Engine "wat?" is not supported for `mars()`
3232
i See `show_engines("mars")`.
3333

34-
# mars execution
35-
36-
Code
37-
res <- fit(hpc_basic, hpc_bad_form, data = hpc, control = ctrl)
38-
Condition
39-
Error in `check_outcome()`:
40-
! For a regression model, the outcome should be `numeric`, not a `factor`.
41-
4234
# submodel prediction
4335

4436
Code

tests/testthat/test-boost_tree_xgboost.R

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,6 @@ test_that('xgboost execution, regression', {
151151
)
152152
)
153153

154-
expect_snapshot(
155-
error = TRUE,
156-
res <- parsnip::fit_xy(
157-
car_basic,
158-
x = mtcars[, num_pred],
159-
y = factor(mtcars$vs),
160-
control = ctrl
161-
)
162-
)
163154
})
164155

165156

tests/testthat/test-mars.R

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@ test_that('mars execution', {
5656
expect_true(has_multi_predict(res))
5757
expect_equal(multi_predict_args(res), "num_terms")
5858

59-
expect_snapshot(
60-
error = TRUE,
61-
res <- fit(
62-
hpc_basic,
63-
hpc_bad_form,
64-
data = hpc,
65-
control = ctrl
66-
)
67-
)
68-
6959
## multivariate y
7060

7161
expect_no_condition(

tests/testthat/test-nearest_neighbor_kknn.R

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@ test_that('kknn execution', {
1515
skip_if_not_installed("kknn")
1616
library(kknn)
1717

18-
# continuous
19-
# expect no error
20-
expect_snapshot(
21-
error = TRUE,
22-
fit_xy(
23-
hpc_basic,
24-
control = ctrl,
25-
x = hpc[, num_pred],
26-
y = hpc$input_fields
27-
)
28-
)
29-
3018
# nominal
3119
# expect no error
3220
expect_no_condition(

tests/testthat/test-rand_forest_ranger.R

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,6 @@ test_that('ranger classification execution', {
4646
)
4747
)
4848

49-
expect_snapshot(
50-
error = TRUE,
51-
res <- fit(
52-
bad_ranger_cls,
53-
funded_amnt ~ term,
54-
data = lending_club,
55-
control = ctrl
56-
)
57-
)
58-
5949
ranger_form_catch <- fit(
6050
bad_ranger_cls,
6151
Class ~ term,

0 commit comments

Comments
 (0)