Skip to content

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

Description

@cpovirk

Similar in spirit to #783.

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

Activity

  1. junyan59 commented on Mar 1, 2021

    @junyan59
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3not scheduledtype=enhancementMake an existing feature better

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions