catchorg / catchorg/Catch2

Better custom matcher

Open
#3,049 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.