diff --git a/src/test/ValentinaTest/tst_qmuparsererrormsg.cpp b/src/test/ValentinaTest/tst_qmuparsererrormsg.cpp index 4c15c0eb5..b2dbcaffe 100644 --- a/src/test/ValentinaTest/tst_qmuparsererrormsg.cpp +++ b/src/test/ValentinaTest/tst_qmuparsererrormsg.cpp @@ -210,6 +210,8 @@ int TST_QmuParserErrorMsg::LoadTranslation(const QString &checkedLocale) void TST_QmuParserErrorMsg::CheckStrings(int code, bool tok, bool pos) { const QString translated = (*msg)[code]; - QCOMPARE(translated.indexOf(QLatin1Literal("$TOK$")) != -1, tok); - QCOMPARE(translated.indexOf(QLatin1Literal("$POS$")) != -1, pos); + const QString message = QString("String: '%1'.").arg(translated); + + QVERIFY2((translated.indexOf(QLatin1Literal("$TOK$")) != -1) == tok, qUtf8Printable(message)); + QVERIFY2((translated.indexOf(QLatin1Literal("$POS$")) != -1) == pos, qUtf8Printable(message)); }