catchorg / Catch2

A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
https://discord.gg/4CWS9zD
Boost Software License 1.0
18.49k stars 3.02k forks source link

How to add description to a test case using overloaded equality(==) operator? #1873

Open marti32997 opened 4 years ago

marti32997 commented 4 years ago

image

How to add desciption, so that this test case would show the proper member of Point class? What do i do after overloading the operator<< with my type?

Also, how to do the same with custom matchers?

image

Thank you in advance

horenmar commented 4 years ago

Make sure the operator<< for your type is provided before you include Catch2, and that it is properly const-qualified.