| 20 | } |
| 21 | |
| 22 | void TestStringData::testAddOneRow() { |
| 23 | QList<QString> rowValues; |
| 24 | rowValues << "one" << "two" << "three"; |
| 25 | |
| 26 | QtCSV::StringData strData; |
| 27 | strData.addRow(rowValues); |
| 28 | |
| 29 | QVERIFY2(!strData.isEmpty(), "StringData is empty"); |
| 30 | QVERIFY2(1 == strData.rowCount(), "Wrong number of rows"); |
| 31 | QVERIFY2(rowValues == strData.rowValues(0), "Wrong data for empty row"); |
| 32 | } |
| 33 | |
| 34 | void TestStringData::testAddOneRowUsingOneString() { |
| 35 | QString value("faklj;"); |