Skip to content

Commit

Permalink
Update test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Aug 31, 2022
1 parent 2130265 commit 1293789
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/arrange.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Error in `arrange()`:
! Problem with the implicit `transmute()` step.
x Problem while computing `..1 = y`.
Caused by error:
Caused by error in `mask$eval_all_mutate()`:
! object 'y' not found
Code
(expect_error(tibble(x = 1) %>% arrange(rep(x, 2))))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/distinct.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
! Problem adding computed columns.
Caused by error in `mutate()`:
! Problem while computing `y = a + 1`.
Caused by error:
Caused by error in `mask$eval_all_mutate()`:
! object 'a' not found

6 changes: 3 additions & 3 deletions tests/testthat/_snaps/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<error/rlang_error>
Error in `filter()`:
! Problem while computing `..1 = _x`.
Caused by error:
Caused by error in `mask$eval_all_filter()`:
! object '_x' not found
Code
(expect_error(mtcars %>% group_by(cyl) %>% filter(`_x`)))
Expand All @@ -108,7 +108,7 @@
Error in `filter()`:
! Problem while computing `..1 = _x`.
i The error occurred in group 1: cyl = 4.
Caused by error:
Caused by error in `mask$eval_all_filter()`:
! object '_x' not found
Code
(expect_error(filter(mtcars, x = 1)))
Expand Down Expand Up @@ -148,7 +148,7 @@
<error/rlang_error>
Error in `filter()`:
! Problem while computing `..1 = stop("{")`.
Caused by error:
Caused by error in `mask$eval_all_filter()`:
! {
Code
data.frame(x = 1, y = 1) %>% filter(across(everything(), ~ .x > 0))
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/group-by.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
! Problem adding computed columns.
Caused by error in `mutate()`:
! Problem while computing `z = a + 1`.
Caused by error:
Caused by error in `mask$eval_all_mutate()`:
! object 'a' not found

6 changes: 3 additions & 3 deletions tests/testthat/_snaps/mutate.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<error/dplyr:::mutate_error>
Error in `mutate()`:
! Problem while computing `a = sum(y)`.
Caused by error:
Caused by error in `mask$eval_all_mutate()`:
! object 'y' not found
Code
(expect_error(tbl %>% group_by(x) %>% mutate(y = NULL, a = sum(y))))
Expand All @@ -16,7 +16,7 @@
Error in `mutate()`:
! Problem while computing `a = sum(y)`.
i The error occurred in group 1: x = 1.
Caused by error:
Caused by error in `mask$eval_all_mutate()`:
! object 'y' not found
Code
(expect_error(tibble(x = 1) %>% mutate(y = mean)))
Expand Down Expand Up @@ -153,6 +153,6 @@
<error/dplyr:::mutate_error>
Error in `mutate()`:
! Problem while computing `..1 = stop("{")`.
Caused by error:
Caused by error in `mask$eval_all_mutate()`:
! {

4 changes: 2 additions & 2 deletions tests/testthat/_snaps/summarise.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
<error/rlang_error>
Error in `summarise()`:
! Problem while computing `..1 = stop("{")`.
Caused by error:
Caused by error in `mask$eval_all_summarise()`:
! {
Code
(expect_error(tibble(a = 1, b = "{value:1, unit:a}") %>% group_by(b) %>%
Expand All @@ -177,6 +177,6 @@
Error in `summarise()`:
! Problem while computing `a = stop("!")`.
i The error occurred in group 1: b = "{value:1, unit:a}".
Caused by error:
Caused by error in `mask$eval_all_summarise()`:
! !

0 comments on commit 1293789

Please sign in to comment.