Make QString pretty printable in test results.

This commit is contained in:
2025-10-03 11:16:03 +02:00
parent 588414be83
commit 28477732f1

View File

@ -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<GenericCore>();