Skip to content

Commit 84848b0

Browse files
krlmlrgithub-actions[bot]
authored andcommitted
[create-pull-request] automated change
1 parent 51ba55e commit 84848b0

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

tests/testthat/_snaps/dplyr-if-else.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@
2828
if_else(x < 2, bad, x)
2929
Condition
3030
Error in `if_else()`:
31-
! `true` must have size 3, not size 2.
31+
! Can't recycle `true` (size 2) to size 3.
3232

3333
---
3434

3535
Code
3636
if_else(x < 2, x, bad)
3737
Condition
3838
Error in `if_else()`:
39-
! `false` must have size 3, not size 2.
39+
! Can't recycle `false` (size 2) to size 3.
4040

4141
---
4242

4343
Code
4444
if_else(x < 2, x, x, missing = bad)
4545
Condition
4646
Error in `if_else()`:
47-
! `missing` must have size 3, not size 2.
47+
! Can't recycle `missing` (size 2) to size 3.
4848

4949
# must have empty dots
5050

@@ -66,11 +66,3 @@
6666
! Can't convert from `false` <double> to <integer> due to loss of precision.
6767
* Locations: 1
6868

69-
# `size` overrides the `condition` size
70-
71-
Code
72-
if_else(TRUE, 1, 2, size = 2)
73-
Condition
74-
Error in `if_else()`:
75-
! `condition` must have size 2, not size 1.
76-

0 commit comments

Comments
 (0)