We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c06d92f commit d24128aCopy full SHA for d24128a
2 files changed
R/expect-match.R
@@ -121,7 +121,7 @@ expect_match_ <- function(
121
}
122
123
msg <- sprintf(
124
- if (negate) "%s matches %s %s (expecting no match).\n%s" else "%s does not match %s %s.\n%s",
+ if (negate) "%s matches %s %s.\n%s" else "%s does not match %s %s.\n%s",
125
act$lab,
126
if (fixed) "string" else "regexp",
127
encodeString(regexp, quote = '"'),
tests/testthat/_snaps/expect-match.md
@@ -47,11 +47,11 @@
47
48
# expect_no_match works
49
50
- `x` does match string "e*".
+ `x` matches string "e*".
51
Text: "te*st"
52
53
---
54
55
- `x` does match regexp "TEST".
+ `x` matches regexp "TEST".
56
Text: "test"
57
0 commit comments