| 75 | } |
| 76 | |
| 77 | void TestStringData::testClearNotEmptyData() { |
| 78 | QList<QString> rowValues; |
| 79 | rowValues << "one" << "two" << "three"; |
| 80 | |
| 81 | QtCSV::StringData strData; |
| 82 | strData.addRow(rowValues); |
| 83 | QVERIFY2(!strData.isEmpty(), "StringData is empty"); |
| 84 | |
| 85 | strData.clear(); |
| 86 | QVERIFY2(strData.isEmpty(), "StringData is not empty"); |
| 87 | } |
| 88 | |
| 89 | void TestStringData::testInsertRows() { |
| 90 | QList<QString> valuesFirst, valuesSecond; |