Skip to content

Commit

Permalink
Update snapshots to dev vctrs
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Feb 27, 2023
1 parent 654bc71 commit 5bb0d2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/vec-case-match.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@
vec_case_match(1, haystacks = 1, values = list(2))
Condition
Error in `vec_case_match()`:
! `haystacks` must be a list, not a number.
! `haystacks` must be a list, not the number 1.

# `values` must be a list

Code
vec_case_match(1, haystacks = list(1), values = 2)
Condition
Error in `vec_case_match()`:
! `values` must be a list, not a number.
! `values` must be a list, not the number 2.

# `needles_arg` is respected

Expand All @@ -114,15 +114,15 @@
vec_case_match(needles = 1, haystacks = 1, values = list(1), haystacks_arg = "foo")
Condition
Error in `vec_case_match()`:
! `foo` must be a list, not a number.
! `foo` must be a list, not the number 1.

---

Code
vec_case_match(needles = 1, haystacks = 1, values = list(1), haystacks_arg = "")
Condition
Error in `vec_case_match()`:
! Input must be a list, not a number.
! Input must be a list, not the number 1.

---

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/vec-case-when.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@
vec_case_when(1, list(2))
Condition
Error in `vec_case_when()`:
! `conditions` must be a list, not a number.
! `conditions` must be a list, not the number 1.

# `values` must be a list

Code
vec_case_when(list(TRUE), 1)
Condition
Error in `vec_case_when()`:
! `values` must be a list, not a number.
! `values` must be a list, not the number 1.

# named inputs show up in the error message

Expand Down

0 comments on commit 5bb0d2d

Please sign in to comment.