Skip to content

Commit d80ef2a

Browse files
committed
remove duplicated tests (closes #40)
1 parent dfd9b0e commit d80ef2a

File tree

2 files changed

+0
-70
lines changed

2 files changed

+0
-70
lines changed

tests/testthat/_snaps/validation-rules.md

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,6 @@
1616
Error in `adjust_probability_calibration()`:
1717
! adjustments that change the hard class predictions must come after adjustments that update the class probability estimates.
1818

19-
---
20-
21-
Code
22-
tailor() %>% adjust_probability_threshold(threshold = 0.4) %>%
23-
adjust_probability_calibration()
24-
Condition
25-
Error in `adjust_probability_calibration()`:
26-
! adjustments that change the hard class predictions must come after adjustments that update the class probability estimates.
27-
28-
---
29-
30-
Code
31-
tailor() %>% adjust_predictions_custom(veg = "potato") %>%
32-
adjust_probability_threshold(threshold = 0.4) %>%
33-
adjust_probability_calibration()
34-
Condition
35-
Error in `adjust_probability_calibration()`:
36-
! adjustments that change the hard class predictions must come after adjustments that update the class probability estimates.
37-
3819
---
3920

4021
Code
@@ -56,26 +37,6 @@
5637
Error in `adjust_probability_threshold()`:
5738
! adjustments cannot be duplicated: "probability_threshold"
5839

59-
---
60-
61-
Code
62-
tailor() %>% adjust_predictions_custom(veg = "potato") %>%
63-
adjust_probability_threshold(threshold = 0.4) %>%
64-
adjust_probability_threshold(threshold = 0.5) %>%
65-
adjust_probability_calibration()
66-
Condition
67-
Error in `adjust_probability_threshold()`:
68-
! adjustments cannot be duplicated: "probability_threshold"
69-
70-
---
71-
72-
Code
73-
tailor() %>% adjust_equivocal_zone(value = 0.2) %>%
74-
adjust_probability_threshold(threshold = 0.4)
75-
Condition
76-
Error in `adjust_probability_threshold()`:
77-
! Equivocal zone addition should come after adjustments that update the class probability estimates or hard class predictions.
78-
7940
---
8041

8142
Code

tests/testthat/test-validation-rules.R

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,6 @@ test_that("validation of adjustments (classification)", {
5050
adjust_probability_calibration()
5151
)
5252

53-
expect_snapshot(
54-
error = TRUE,
55-
tailor() %>%
56-
adjust_probability_threshold(threshold = .4) %>%
57-
adjust_probability_calibration()
58-
)
59-
60-
expect_snapshot(
61-
error = TRUE,
62-
tailor() %>%
63-
adjust_predictions_custom(veg = "potato") %>%
64-
adjust_probability_threshold(threshold = .4) %>%
65-
adjust_probability_calibration()
66-
)
67-
6853
expect_snapshot(
6954
error = TRUE,
7055
tailor() %>%
@@ -82,22 +67,6 @@ test_that("validation of adjustments (classification)", {
8267
adjust_probability_calibration()
8368
)
8469

85-
expect_snapshot(
86-
error = TRUE,
87-
tailor() %>%
88-
adjust_predictions_custom(veg = "potato") %>%
89-
adjust_probability_threshold(threshold = .4) %>%
90-
adjust_probability_threshold(threshold = .5) %>%
91-
adjust_probability_calibration()
92-
)
93-
94-
expect_snapshot(
95-
error = TRUE,
96-
tailor() %>%
97-
adjust_equivocal_zone(value = .2) %>%
98-
adjust_probability_threshold(threshold = .4)
99-
)
100-
10170
expect_snapshot(
10271
error = TRUE,
10372
tailor() %>%

0 commit comments

Comments
 (0)