From 28477732f19b373f0259418bf4b4c1a4a87ccc3b Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Fri, 3 Oct 2025 11:16:03 +0200 Subject: [PATCH] Make QString pretty printable in test results. --- tests/GenericCoreTests/core_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/GenericCoreTests/core_test.cpp b/tests/GenericCoreTests/core_test.cpp index 4ee7d36..a30ac06 100644 --- a/tests/GenericCoreTests/core_test.cpp +++ b/tests/GenericCoreTests/core_test.cpp @@ -4,6 +4,10 @@ #include "../../libs/GenericCore/genericcore.h" +QT_BEGIN_NAMESPACE +inline void PrintTo(const QString& qString, ::std::ostream* os) { *os << qUtf8Printable(qString); } +QT_END_NAMESPACE + TEST(CoreTests, TestEqualString) { const auto expected = "GenericCore (Version x.y.z)"; auto core = std::make_unique();