Tests: Fix warning and test execution on Windows

Avoids

 warning C4566: character represented by universal-character-name
 '\u23F0' cannot be represented in the current code page (1252)
and the resulting test fail on Windows.

Change-Id: I2bdd43b0648a954faa9e444df79a91027e6e891f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Christian Stenger
2023-11-15 14:00:11 +01:00
committed by Alessandro Portale
parent 37ed2ce42f
commit e38c84d5db

View File

@@ -448,7 +448,7 @@ void tst_StringUtils::testAsciify_data()
QTest::newRow("Basic Latin") << QString("Basic text") << QString("Basic text");
QTest::newRow("Control character") << QString("\x07 text") << QString("u0007 text");
QTest::newRow("Miscellaneous Technical") << QString("\u23F0 text") << QString("u23f0 text");
QTest::newRow("Miscellaneous Technical") << QString(u8"\u23F0 text") << QString("u23f0 text");
}
void tst_StringUtils::testAsciify()