Updated the core submodule and make the tests pass (in a very crude way).

This commit is contained in:
2025-10-03 11:17:03 +02:00
parent 28477732f1
commit 7fad2ec1d5
2 changed files with 7 additions and 5 deletions

View File

@ -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<GenericCore>();
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!";
const QString expected = QString("Hello from the Core!");
auto core = std::make_unique<GenericCore>();
const auto actual = core->toString();
const QString actual = core->toString();
ASSERT_NE(expected, actual);
}