Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Jul 26, 2023
1 parent fd5a732 commit fe11742
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/list-combine.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@
list_c(1)
Condition
Error in `list_c()`:
! `x` must be a list, not a number.
! `x` must be a list, not the number 1.
Code
list_rbind(1)
Condition
Error in `list_rbind()`:
! `x` must be a list, not a number.
! `x` must be a list, not the number 1.
Code
list_cbind(1)
Condition
Error in `list_cbind()`:
! `x` must be a list, not a number.
! `x` must be a list, not the number 1.

---

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/list-transpose.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
list_transpose(10)
Condition
Error in `list_transpose()`:
! `x` must be a list, not a number.
! `x` must be a list, not the number 10.
Code
list_transpose(list(1), template = mean)
Condition
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/map.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
Error in `map_int()`:
i In index: 3.
Caused by error:
! Can't coerce from a character vector to an integer vector.
! Can't coerce from a string to an integer vector.
Code
map(1:3, ~ fail_at_3(.x, stop("Doesn't work")))
Condition
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/map2.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Error in `map2_int()`:
i In index: 1.
Caused by error:
! Can't coerce from a character vector to an integer vector.
! Can't coerce from a string to an integer.
Code
map2_int(1, 1, ~ 1:2)
Condition
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/modify-tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
modify_tree(list(), is_node = 1)
Condition
Error in `modify_tree()`:
! Can't convert `is_node`, a number, to a function.
! Can't convert `is_node`, a double vector, to a function.

2 changes: 1 addition & 1 deletion tests/testthat/_snaps/pmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Error in `pmap_int()`:
i In index: 1.
Caused by error:
! Can't coerce from a character vector to an integer vector.
! Can't coerce from a string to an integer.
Code
pmap_int(list(1), ~ 1:2)
Condition
Expand Down

0 comments on commit fe11742

Please sign in to comment.