summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp b/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp
index c2e7f26387..6e19d60cbb 100644
--- a/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp
+++ b/tests/auto/testlib/selftests/cmptest/tst_cmptest.cpp
@@ -135,6 +135,25 @@ void tst_Cmptest::compareQStringLists_data()
{
QStringList opA;
+ QStringList opB(opA);
+
+ QTest::newRow("empty lists") << opA << opB;
+ }
+
+ {
+ QStringList opA;
+ opA.append(QLatin1String("string1"));
+ opA.append(QLatin1String("string2"));
+ opA.append(QLatin1String("string3"));
+ opA.append(QLatin1String("string4"));
+
+ QStringList opB(opA);
+
+ QTest::newRow("equal lists") << opA << opB;
+ }
+
+ {
+ QStringList opA;
opA.append(QLatin1String("string1"));
opA.append(QLatin1String("string2"));