From 9d2ee59138b298721f02ff90710d4354baef51ca Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 4 Nov 2018 18:02:33 +0100 Subject: [PATCH] Update comments in tests/asserthelper.h No real changes, just avoid mentioning CPPUNIT_ASSERT_EQUAL() in the comments for the operator<<() overloads as it is used with CATCH too. Also don't duplicate the same comment 4 times unnecessarily. --- tests/asserthelper.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/asserthelper.h b/tests/asserthelper.h index ce8c9c6a29..ce1d1fba2a 100644 --- a/tests/asserthelper.h +++ b/tests/asserthelper.h @@ -29,16 +29,11 @@ namespace wxTestPrivate std::ostream& operator<<(std::ostream& os, const ColourChannel& cc); } // wxTestPrivate namespace -// this operator is needed to use CPPUNIT_ASSERT_EQUAL with wxColour objects +// Operators used to show the values of the corresponding types when comparing +// them in the unit tests fails. std::ostream& operator<<(std::ostream& os, const wxColour& c); - -// this operator is needed to use CPPUNIT_ASSERT_EQUAL with wxSize objects std::ostream& operator<<(std::ostream& os, const wxSize& s); - -// this operator is needed to use CPPUNIT_ASSERT_EQUAL with wxFont objects std::ostream& operator<<(std::ostream& os, const wxFont& f); - -// this operator is needed to use CPPUNIT_ASSERT_EQUAL with wxPoint objects std::ostream& operator<<(std::ostream& os, const wxPoint& p); #endif