Improved test TST_QmuParserErrorMsg::TestEErrorCodes().
--HG-- branch : develop
This commit is contained in:
parent
d118ccb218
commit
14e3c06833
|
@ -210,6 +210,8 @@ int TST_QmuParserErrorMsg::LoadTranslation(const QString &checkedLocale)
|
||||||
void TST_QmuParserErrorMsg::CheckStrings(int code, bool tok, bool pos)
|
void TST_QmuParserErrorMsg::CheckStrings(int code, bool tok, bool pos)
|
||||||
{
|
{
|
||||||
const QString translated = (*msg)[code];
|
const QString translated = (*msg)[code];
|
||||||
QCOMPARE(translated.indexOf(QLatin1Literal("$TOK$")) != -1, tok);
|
const QString message = QString("String: '%1'.").arg(translated);
|
||||||
QCOMPARE(translated.indexOf(QLatin1Literal("$POS$")) != -1, pos);
|
|
||||||
|
QVERIFY2((translated.indexOf(QLatin1Literal("$TOK$")) != -1) == tok, qUtf8Printable(message));
|
||||||
|
QVERIFY2((translated.indexOf(QLatin1Literal("$POS$")) != -1) == pos, qUtf8Printable(message));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user