Skip to content

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

@cpovirk

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()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3not scheduledtype=enhancementMake an existing feature better

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions