google/truth

If matches(x) fails but containsMatch(x) would have passed, suggest containsMatch in the failure message

cpovirk opened this issue · 1 comments

Similar in spirit to #783.

assertThat("foo bar baz").matches("ba[rz]");
<normal failure message>
Did you mean to call containsMatch() instead of match()?

Hi @cpovirk, I made a PR for this issue #830, could you review it? Thanks.