Fix tests. Regular expression should support french names.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-07-26 21:24:04 +03:00
parent d9f93a28e4
commit cbfe69756f

View File

@ -102,9 +102,12 @@ void TST_NameRegExp::TestNameRegExp_data()
tag = localeName+QLatin1String(". Any next character can't be \"")+decimalPoint+QLatin1String("\""); tag = localeName+QLatin1String(". Any next character can't be \"")+decimalPoint+QLatin1String("\"");
QTest::newRow(qUtf8Printable(tag)) << QLatin1String("a")+decimalPoint << false; QTest::newRow(qUtf8Printable(tag)) << QLatin1String("a")+decimalPoint << false;
if (groupSeparator != '\'')
{
tag = localeName+QLatin1String(". Any next character can't be \"")+groupSeparator+QLatin1String("\""); tag = localeName+QLatin1String(". Any next character can't be \"")+groupSeparator+QLatin1String("\"");
QTest::newRow(qUtf8Printable(tag)) << QLatin1String("a")+groupSeparator << false; QTest::newRow(qUtf8Printable(tag)) << QLatin1String("a")+groupSeparator << false;
} }
}
QTest::newRow("First character can't be \"+\"") << "+a" << false; QTest::newRow("First character can't be \"+\"") << "+a" << false;
QTest::newRow("First character can't be \"*\"") << "*a" << false; QTest::newRow("First character can't be \"*\"") << "*a" << false;