MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / testOperatorInput

Method testOperatorInput

3rdparty/qtcsv-qt5/tests/teststringdata.cpp:220–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void TestStringData::testOperatorInput()
221{
222 QtCSV::StringData data;
223 data << QString("1") << "one";
224
225 QStringList thirdRow;
226 thirdRow << "one" << "two" << "three";
227
228 data << thirdRow;
229
230 QVERIFY2(3 == data.rowCount(), "Wrong number of rows");
231
232 QStringList expectedFirstRow, expectedSecondRow;
233 expectedFirstRow << "1";
234 expectedSecondRow << "one";
235
236 QVERIFY2(expectedFirstRow == data.rowValues(0), "Wrong data for first row");
237 QVERIFY2(expectedSecondRow == data.rowValues(1),
238 "Wrong data for second row");
239
240 QVERIFY2(thirdRow == data.rowValues(2), "Wrong data for third row");
241}
242
243void TestStringData::testRemoveRow()
244{

Callers

nothing calls this directly

Calls 3

QStringClass · 0.50
rowCountMethod · 0.45
rowValuesMethod · 0.45

Tested by

no test coverage detected