From 14e3c0683336a49a83618c73c042d1a67088ef12 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 15 Nov 2015 21:09:52 +0200 Subject: [PATCH] Improved test TST_QmuParserErrorMsg::TestEErrorCodes(). --HG-- branch : develop --- src/test/ValentinaTest/tst_qmuparsererrormsg.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)); }