|
36 | 36 | Condition |
37 | 37 | Error in `expect_condition()`: |
38 | 38 | ! Can't supply `...` unless `regexp` is set. |
39 | | - * Unusued arguments: `foo`. |
| 39 | + * Unused arguments: `foo`. |
40 | 40 | i `...` is passed to `grepl()` if and only if the `regexp` argument is used. |
41 | 41 | Code |
42 | 42 | expect_condition(stop("Hi!"), , , "bar") |
43 | 43 | Condition |
44 | 44 | Error in `expect_condition()`: |
45 | 45 | ! Can't supply `...` unless `regexp` is set. |
46 | | - * Unusued arguments: `..1`. |
| 46 | + * Unused arguments: `..1`. |
47 | 47 | i `...` is passed to `grepl()` if and only if the `regexp` argument is used. |
48 | 48 | Code |
49 | | - expect_condition(stop("Hi!"), , , "bar", foo = "bar") |
| 49 | + expect_condition(stop("Hi!"), , , "bar", fixed = TRUE) |
50 | 50 | Condition |
51 | 51 | Error in `expect_condition()`: |
52 | 52 | ! Can't supply `...` unless `regexp` is set. |
53 | | - * Unusued arguments: `..1` and `foo`. |
| 53 | + * Unused arguments: `..1` and `fixed`. |
54 | 54 | i `...` is passed to `grepl()` if and only if the `regexp` argument is used. |
55 | 55 | Code |
56 | 56 | expect_condition(stop("Hi!"), "x", foo = "bar") |
|
59 | 59 | ! Failed to compare condition to `regexp`. |
60 | 60 | Caused by error in `grepl()`: |
61 | 61 | ! unused argument (foo = "bar") |
| 62 | + Code |
| 63 | + expect_condition(stop("Hi!"), pattern = "bar", fixed = TRUE) |
| 64 | + Condition |
| 65 | + Error in `expect_condition()`: |
| 66 | + ! Can't supply `...` unless `regexp` is set. |
| 67 | + * Unused arguments: `pattern` and `fixed`. |
| 68 | + i `...` is passed to `grepl()` if and only if the `regexp` argument is used. |
62 | 69 |
|
0 commit comments