diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-03-22 14:50:23 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-03-22 14:51:38 (GMT) |
commit | 0a03e65d9e1722cb055ccce93801e1471e7f6e84 (patch) | |
tree | c2e9159218f3070c3909444444ef8aefeef5684a /tests/auto/qstringlist | |
parent | 77b913e5f8fa93c62a245685d55d76eec2e9021a (diff) | |
download | Qt-0a03e65d9e1722cb055ccce93801e1471e7f6e84.zip Qt-0a03e65d9e1722cb055ccce93801e1471e7f6e84.tar.gz Qt-0a03e65d9e1722cb055ccce93801e1471e7f6e84.tar.bz2 |
Code cleaning for the QStringList's joinEmptiness() test case
Diffstat (limited to 'tests/auto/qstringlist')
-rw-r--r-- | tests/auto/qstringlist/tst_qstringlist.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qstringlist/tst_qstringlist.cpp b/tests/auto/qstringlist/tst_qstringlist.cpp index fb28bf4..210903c 100644 --- a/tests/auto/qstringlist/tst_qstringlist.cpp +++ b/tests/auto/qstringlist/tst_qstringlist.cpp @@ -77,7 +77,7 @@ private slots: void streamingOperator(); void join() const; void join_data() const; - void join_emptiness() const; + void joinEmptiness() const; }; extern const char email[]; @@ -312,13 +312,13 @@ void tst_QStringList::join_data() const << QString("a b c"); } -void tst_QStringList::join_emptiness() const +void tst_QStringList::joinEmptiness() const { QStringList list; QString string = list.join(QString()); - QCOMPARE(string.isEmpty(), true); - QCOMPARE(string.isNull(), true); + QVERIFY(string.isEmpty()); + QVERIFY(string.isNull()); } QTEST_APPLESS_MAIN(tst_QStringList) |