Skip to content

Better custom matcher #3049

@kobe2000

Description

@kobe2000

The old and new style custom matchers both need bunch of code.

In the most situation, I need only test equality of two custom objects. It is convenient to use standard operator==, but no friendly message when test fails.

So I think it will be good to define some kind of to_string function of custom object, thus it will need no much code to satisfy my needs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions