From a52a27ad9015e7f531c6adbeaba2f923c88beb67 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 15 Jul 2020 01:58:07 +0200 Subject: [PATCH] Display wxSize less confusingly if any tests fail Using "x" as separator between the components created confusion with hexadecimal notation, resulting in confusing messages like "0x17==0x0" that seemed to describe comparison of 2 numbers and not 2 wxSize objects. Using "*" is also more consistent with wxRect output format. --- tests/asserthelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/asserthelper.cpp b/tests/asserthelper.cpp index 7b25cec2d6..73a980cac1 100644 --- a/tests/asserthelper.cpp +++ b/tests/asserthelper.cpp @@ -49,7 +49,7 @@ std::ostream& operator<<(std::ostream& os, const wxColour& c) std::ostream& operator<<(std::ostream& os, const wxSize& s) { - os << s.x << "x" << s.y; + os << s.x << "*" << s.y; return os; }