Skip to content

Commit 887f508

Browse files
kludge snapshots
1 parent 6368905 commit 887f508

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/testthat/_snaps/expect-condition.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
expect_error(stop("!"), regexp = 1)
1313
Condition
1414
Error in `expect_error()`:
15-
! `pattern` must be a single string, `NA`, or `NULL`, not the number 1.
15+
! `regexp` must be a single string, `NA`, or `NULL`, not the number 1.
1616
Code
1717
expect_error(stop("!"), class = 1)
1818
Condition
@@ -35,12 +35,14 @@
3535
expect_condition(stop("Hi!"), foo = "bar")
3636
Condition
3737
Error in `expect_condition()`:
38-
! Can't specify `...` without `pattern`.
38+
! Found arguments in `...` to be passed to `grepl()`, but no `regexp`.
39+
* First problematic argument:
40+
i foo
3941
Code
4042
expect_condition(stop("Hi!"), "x", foo = "bar")
4143
Condition
4244
Error in `expect_condition()`:
43-
! Failed to compare condition to `pattern`.
45+
! Failed to compare condition to `regexp`.
4446
Caused by error in `grepl()`:
4547
! unused argument (foo = "bar")
4648

0 commit comments

Comments
 (0)