diff options
Diffstat (limited to 'tests/auto/qstringlist/tst_qstringlist.cpp')
-rw-r--r-- | tests/auto/qstringlist/tst_qstringlist.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qstringlist/tst_qstringlist.cpp b/tests/auto/qstringlist/tst_qstringlist.cpp index 8429303..210903c 100644 --- a/tests/auto/qstringlist/tst_qstringlist.cpp +++ b/tests/auto/qstringlist/tst_qstringlist.cpp @@ -77,6 +77,7 @@ private slots: void streamingOperator(); void join() const; void join_data() const; + void joinEmptiness() const; }; extern const char email[]; @@ -311,5 +312,14 @@ void tst_QStringList::join_data() const << QString("a b c"); } +void tst_QStringList::joinEmptiness() const +{ + QStringList list; + QString string = list.join(QString()); + + QVERIFY(string.isEmpty()); + QVERIFY(string.isNull()); +} + QTEST_APPLESS_MAIN(tst_QStringList) #include "tst_qstringlist.moc" |