Skip to content

Commit 7097a79

Browse files
committed
update snapshots
1 parent e4ea7a3 commit 7097a79

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

R/condense_control.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ condense_control <- function(x, ref, ..., call = rlang::caller_env()) {
3030
if (length(mismatch)) {
3131
cli::cli_abort(
3232
c(
33-
"Object of class {.cls {class(x)[1]}} cannot be coerced to
34-
object of class {.cls {class(ref)[1]}}.",
33+
"{.obj_type_friendly {x}} cannot be coerced to {.obj_type_friendly {ref}}.",
3534
"i" = "{cli::qty(mismatch)} The argument{?s} {.arg {mismatch}}
3635
{?is/are} missing."
3736
),

tests/testthat/_snaps/condense_control.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
condense_control(control_parsnip(), ctrl)
55
Condition
66
Error:
7-
! Object of class <control_parsnip> cannot be coerced to object of class <control_parsnip>.
7+
! a <control_parsnip> object cannot be coerced to a <control_parsnip> object.
88
i The arguments `allow_par` and `anotherone` are missing.
99

1010
---
@@ -13,6 +13,6 @@
1313
control_test(ctrl)
1414
Condition
1515
Error in `control_test()`:
16-
! Object of class <control_parsnip> cannot be coerced to object of class <control_parsnip>.
16+
! a <control_parsnip> object cannot be coerced to a <control_parsnip> object.
1717
i The arguments `allow_par` and `anotherone` are missing.
1818

tests/testthat/_snaps/contr_one_hot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
contr_one_hot(character(0))
55
Condition
66
Error in `contr_one_hot()`:
7-
! A character vector for `n` cannot be empty.
7+
! `n` cannot be empty.
88

99
---
1010

0 commit comments

Comments
 (0)