Skip to content

Commit dfefcd9

Browse files
committed
update snapshots
1 parent 537e363 commit dfefcd9

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

tests/testthat/_snaps/aaa-metrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
Error in `metric_set()`:
1717
! Failed to compute `rmse()`.
1818
Caused by error:
19-
! `estimate` should be a numeric, not a <factor> object.
19+
! `estimate` should be a numeric vector, not a <factor> object.
2020

2121
---
2222

tests/testthat/_snaps/aaa-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
new_class_metric(1, "maximize")
55
Condition
66
Error in `new_metric()`:
7-
! `fn` must be a function.
7+
! `fn` must be a function, not the number 1.
88

99
# `direction` is validated
1010

tests/testthat/_snaps/check_metric.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
check_numeric_metric(1, "1", 1)
1313
Condition
1414
Error:
15-
! `estimate` should be a numeric, not a string.
15+
! `estimate` should be a numeric vector, not a string.
1616

1717
# check_class_metric() validates case_weights
1818

tests/testthat/_snaps/class-kap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
kap(three_class, truth = "obs", estimate = "pred", weighting = 1)
55
Condition
66
Error in `kap()`:
7-
! `weighting` must be a string.
7+
! `weighting` must be a single string, not the number 1.
88

99
---
1010

tests/testthat/_snaps/error-handling.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
sens(pathology, pathology, scan, estimator = "blah")
4848
Condition
4949
Error in `sens()`:
50-
! `estimator` must be one of: binary, macro, micro, and macro_weighted, not blah.
50+
! `estimator` must be one of "binary", "macro", "micro", or "macro_weighted", not "blah".
5151

5252
# Bad estimator + truth combination
5353

@@ -63,15 +63,15 @@
6363
sens(hpc_cv, obs, pred, estimator = 1)
6464
Condition
6565
Error in `sens()`:
66-
! `estimator` must be a single string, not the number 1.
66+
! `estimator` must be a character vector, not the number 1.
6767

6868
---
6969

7070
Code
7171
sens(hpc_cv, obs, pred, estimator = c("1", "2"))
7272
Condition
7373
Error in `sens()`:
74-
! `estimator` must be a single string, not a character vector.
74+
! `estimator` must be one of "binary", "macro", "micro", or "macro_weighted", not "1".
7575

7676
# Numeric matrix in numeric metric
7777

tests/testthat/_snaps/template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
data = lung_surv, truth = surv_obj, estimate = list)
205205
Condition
206206
Error:
207-
! `estimate` should be a numeric, not a list.
207+
! `estimate` should be a numeric vector, not a list.
208208

209209
---
210210

tests/testthat/_snaps/validation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
validate_numeric_truth_numeric_estimate("1", 1)
55
Condition
66
Error:
7-
! `truth` should be a numeric, not a string.
7+
! `truth` should be a numeric vector, not a string.
88

99
---
1010

1111
Code
1212
validate_numeric_truth_numeric_estimate(1, "1")
1313
Condition
1414
Error:
15-
! `estimate` should be a numeric, not a string.
15+
! `estimate` should be a numeric vector, not a string.
1616

1717
---
1818

@@ -188,7 +188,7 @@
188188
.pred_time))
189189
Condition
190190
Error:
191-
! `estimate` should be a numeric, not a character vector.
191+
! `estimate` should be a numeric vector, not a character vector.
192192

193193
---
194194

0 commit comments

Comments
 (0)