truth
truth copied to clipboard
If matches(x) fails but containsMatch(x) would have passed, suggest containsMatch in the failure message
Similar in spirit to https://github.com/google/truth/issues/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 https://github.com/google/truth/pull/830, could you review it? Thanks.