summaryrefslogtreecommitdiff
path: root/tests/auto/dataprocessor/tst_dataprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/dataprocessor/tst_dataprocessor.cpp')
-rw-r--r--tests/auto/dataprocessor/tst_dataprocessor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/dataprocessor/tst_dataprocessor.cpp b/tests/auto/dataprocessor/tst_dataprocessor.cpp
index 7c025b9..dacc470 100644
--- a/tests/auto/dataprocessor/tst_dataprocessor.cpp
+++ b/tests/auto/dataprocessor/tst_dataprocessor.cpp
@@ -305,8 +305,10 @@ void tst_DataProcessor::goodTextFrame_data()
}
//UC 6.2
- //QTest::newRow(QStringLiteral("Text frame containing Hello-µ@ßöäüàá-UTF-8!!").toStdString().data()) << QByteArray::fromHex("48656c6c6f2dc2b540c39fc3b6c3a4c3bcc3a0c3a12d5554462d382121") << QStringLiteral("Hello-µ@ßöäüàá-UTF-8!!").size();
- QTest::newRow(QStringLiteral("Text frame containing Hello-µ@ßöäüàá-UTF-8!!").toStdString().data()) << QByteArray::fromHex("48656c6c6f2dc2b540c39fc3b6c3a4c3bcc3a0c3a12d5554462d382121") << QStringLiteral("Hello-\xC2\xB5\x40\xC3\x9F\xC3\xB6\xC3\xA4\xC3\xBC\xC3\xA0\xC3\xA1-UTF-8!!").size();
+ //the text string reads: Text frame containing Hello-µ@ßöäüàá-UTF-8!!
+ //Visual Studio doesn't like UTF-8 in source code, so we use escape codes for the string
+ //The number 22 refers to the length of the string; the length was incorrectly calculated on Visual Studio
+ QTest::newRow(QStringLiteral("Text frame containing Hello-\xC2\xB5\x40\xC3\x9F\xC3\xB6\xC3\xA4\xC3\xBC\xC3\xA0\xC3\xA1-UTF-8!!").toStdString().data()) << QByteArray::fromHex("48656c6c6f2dc2b540c39fc3b6c3a4c3bcc3a0c3a12d5554462d382121") << 22;
}
void tst_DataProcessor::goodTextFrame()