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.
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_stringfunction of custom object, thus it will need no much code to satisfy my needs.