summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2010-03-22 14:50:23 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-03-22 14:51:38 (GMT)
commit0a03e65d9e1722cb055ccce93801e1471e7f6e84 (patch)
treec2e9159218f3070c3909444444ef8aefeef5684a
parent77b913e5f8fa93c62a245685d55d76eec2e9021a (diff)
downloadQt-0a03e65d9e1722cb055ccce93801e1471e7f6e84.zip
Qt-0a03e65d9e1722cb055ccce93801e1471e7f6e84.tar.gz
Qt-0a03e65d9e1722cb055ccce93801e1471e7f6e84.tar.bz2
Code cleaning for the QStringList's joinEmptiness() test case
-rw-r--r--tests/auto/qstringlist/tst_qstringlist.cpp8
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)