Closed latot closed 8 months ago
The second argument to expect_error()
is supposed to be a single regular expression. For this sort of problem, I'd strongly recommend expect_snapshot()
instead.
@hadley I check the snapshot one! thx :D they are great and so useful for a lot of things!
I just didn't know they exists, I didn't check all the types that exists.
Moving to snapshots!
Hi, I'm trying to write a test where the expected error is generated by waldo.
This test should pass, instead we get a weird error:
Well, I used some very brute ways, and the text is not regex, I have tested with regex with
^foo$
or\bfoo\b
, sadly still the same word.Maybe I'm just using it bad, no idea if is a bug or I'm using waldo bad with testthat.
Thx!