From 7fad2ec1d526f165956ed573bd2a979461fcd6d6 Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Fri, 3 Oct 2025 11:17:03 +0200 Subject: [PATCH] Updated the core submodule and make the tests pass (in a very crude way). --- libs/GenericCore | 2 +- tests/GenericCoreTests/core_test.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/libs/GenericCore b/libs/GenericCore index b631f42..7ec346b 160000 --- a/libs/GenericCore +++ b/libs/GenericCore @@ -1 +1 @@ -Subproject commit b631f4200e8f756bb1f5b76e9c05fb6e7eea03c3 +Subproject commit 7ec346b5a595e4bd77e3bac39ca2bf832caac7e9 diff --git a/tests/GenericCoreTests/core_test.cpp b/tests/GenericCoreTests/core_test.cpp index a30ac06..b378fe2 100644 --- a/tests/GenericCoreTests/core_test.cpp +++ b/tests/GenericCoreTests/core_test.cpp @@ -9,7 +9,9 @@ inline void PrintTo(const QString& qString, ::std::ostream* os) { *os << qUtf8Pr QT_END_NAMESPACE TEST(CoreTests, TestEqualString) { - const auto expected = "GenericCore (Version x.y.z)"; + const QString coreName("GenericCore"); + const QString coreVersion("0.0.1"); + const auto expected = QString("%1 (Version %2)").arg(coreName).arg(coreVersion); auto core = std::make_unique(); const auto actual = core->toString(); // const auto actual = multiply(1, 1); @@ -17,8 +19,8 @@ TEST(CoreTests, TestEqualString) { } TEST(CoreTests, TestNotEqualString) { - const auto expected = "Hello from the Core!"; - auto core = std::make_unique(); - const auto actual = core->toString(); + const QString expected = QString("Hello from the Core!"); + auto core = std::make_unique(); + const QString actual = core->toString(); ASSERT_NE(expected, actual); }