Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
Acceptance criterion:
- all existing tests still pass
- the following new tests don't fail:
{ constexpr auto table = qOffsetStringArray("Foo", "Foo", ""); QVERIFY(table.viewAt(0) == "Foo"); QVERIFY(table.viewAt(1) == "Foo"); QVERIFY(table.viewAt(2) == ""); QCOMPARE(table.m_string.size(), 4); } { constexpr auto table = qOffsetStringArray("Foo", "", "Foo"); QVERIFY(table.viewAt(0) == "Foo"); QVERIFY(table.viewAt(1) == ""); QVERIFY(table.viewAt(2) == "Foo"); QCOMPARE(table.m_string.size(), 4); }