Compare commits

...

2 Commits

2 changed files with 11 additions and 5 deletions

View File

@ -4,8 +4,14 @@
#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)";
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);
@ -13,8 +19,8 @@ TEST(CoreTests, TestEqualString) {
}
TEST(CoreTests, TestNotEqualString) {
const auto expected = "Hello from the Core!";
auto core = std::make_unique<GenericCore>();
const auto actual = core->toString();
const QString expected = QString("Hello from the Core!");
auto core = std::make_unique<GenericCore>();
const QString actual = core->toString();
ASSERT_NE(expected, actual);
}