| 26 | } |
| 27 | |
| 28 | void TestStringData::testAddOneRow() |
| 29 | { |
| 30 | QStringList rowValues; |
| 31 | rowValues << "one" << "two" << "three"; |
| 32 | |
| 33 | QtCSV::StringData strData; |
| 34 | strData.addRow(rowValues); |
| 35 | |
| 36 | QVERIFY2(false == strData.isEmpty(), "StringData is empty"); |
| 37 | QVERIFY2(1 == strData.rowCount(), "Wrong number of rows"); |
| 38 | QVERIFY2(rowValues == strData.rowValues(0), "Wrong data for empty row"); |
| 39 | } |
| 40 | |
| 41 | void TestStringData::testAddOneRowUsingOneString() |
| 42 | { |