MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / Utf16PascalStringTest_data

Method Utf16PascalStringTest_data

test/ocd_t.cpp:209–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected