MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / testCompareForEquality

Method testCompareForEquality

3rdparty/qtcsv/tests/testvariantdata.cpp:179–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void TestVariantData::testCompareForEquality() {
180 QStringList firstRow, secondRow;
181 firstRow << "one" << "two" << "three";
182 secondRow << "four" << "five";
183
184 QtCSV::VariantData firstData;
185 firstData.addRow(firstRow);
186 firstData.addRow(secondRow);
187
188 QtCSV::VariantData secondData;
189 secondData.addRow(firstRow);
190 secondData.addRow(secondRow);
191
192 QVERIFY2(firstData == firstData,
193 "Failed to compare for equality same object");
194 QVERIFY2(!(firstData != firstData),
195 "Failed to compare for equality same object");
196
197 QVERIFY2(firstData == secondData, "Objects are not the same");
198 QVERIFY2(!(firstData != secondData), "Objects are not the same");
199
200 secondData.addRow(firstRow);
201
202 QVERIFY2(!(firstData == secondData), "Objects are the same");
203 QVERIFY2(firstData != secondData, "Objects are the same");
204}
205
206void TestVariantData::testCopyConstruction() {
207 QStringList firstRow, secondRow;

Callers

nothing calls this directly

Calls 1

addRowMethod · 0.45

Tested by

no test coverage detected