| 207 | |
| 208 | |
| 209 | void Utf16PascalStringTest_data() |
| 210 | { |
| 211 | QTest::addColumn<QString>("input"); |
| 212 | QTest::addColumn<QString>("expected"); |
| 213 | |
| 214 | QTest::newRow("1") << QString::fromUtf8("1") << QString::fromUtf8("1"); |
| 215 | QTest::newRow("123") << QString::fromUtf8("123") << QString::fromUtf8("123"); |
| 216 | QTest::newRow("1234") << QString::fromUtf8("1234") << QString::fromUtf8("123"); |
| 217 | QTest::newRow("123456789") << QString::fromUtf8("123456789") << QString::fromUtf8("123"); |
| 218 | |
| 219 | // trailing surrogate pair |
| 220 | QTest::newRow("12Yee") << QString::fromUtf8("12𐐷") << QString::fromUtf8("12"); |
| 221 | QTest::newRow("1Yee") << QString::fromUtf8("1𐐷") << QString::fromUtf8("1𐐷"); |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * Tests the UTF-16 pascal string implementation, Ocd::Utf16PascalString<N>. |
nothing calls this directly
no outgoing calls
no test coverage detected