Let's look at both. Go ahead and fork and commit the string matching
Then let's look at the regex version. I do see where this could be
On Feb 10, 11:50 am, Ben Johnson <
benbjohn...@yahoo.com> wrote:
> Kris-
>
> I think regex is an edge case. Most of the time I want to match a specific a
> message thrown from a test. The only time I could see using regex is when an
> error message includes a time or when your methods are non-deterministic. In
> those cases you can still catch the error in a test and do an assertTrue()
> against a regex on the error's message.
>
> A regex would also increase the complexity of using "expectsMessage" since you
> would have to escape all the regex special characters.
>
> Ben Johnsonhttps://
github.com/benbjohnson
>
> ________________________________