summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2009-07-03 08:08:52 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2009-07-03 08:08:52 (GMT)
commit8a0b05f71d2a9481a21143d1b87e2b18d427d1d5 (patch)
tree0fea01e027da6cfc60f53c0ba6faad9daee62e4b /tests
parent17f814ce07a4d82563012a15a46dfe6acb2edcc5 (diff)
downloadQt-8a0b05f71d2a9481a21143d1b87e2b18d427d1d5.zip
Qt-8a0b05f71d2a9481a21143d1b87e2b18d427d1d5.tar.gz
Qt-8a0b05f71d2a9481a21143d1b87e2b18d427d1d5.tar.bz2
fix the test _and_ the class :)
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qstringbuilder/tst_qstringbuilder.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/tests/auto/qstringbuilder/tst_qstringbuilder.cpp b/tests/auto/qstringbuilder/tst_qstringbuilder.cpp
index fdbaf21..72889bc 100644
--- a/tests/auto/qstringbuilder/tst_qstringbuilder.cpp
+++ b/tests/auto/qstringbuilder/tst_qstringbuilder.cpp
@@ -85,28 +85,18 @@
#undef QT_NO_CAST_TO_ASCII
#endif
-
#include <QtTest/QtTest>
//TESTED_CLASS=QStringBuilder
//TESTED_FILES=qstringbuilder.cpp
-#include <qtest.h>
-
#define LITERAL "some literal"
class tst_QStringBuilder : public QObject
{
Q_OBJECT
-public:
- tst_QStringBuilder() {}
- ~tst_QStringBuilder() {}
-
-public slots:
- void init() {}
- void cleanup() {}
-
+private slots:
void scenario();
};
@@ -119,6 +109,7 @@ void tst_QStringBuilder::scenario()
QLatin1Char achar('c');
QString r2(QLatin1String(LITERAL LITERAL));
QString r;
+ QByteArray ba(LITERAL);
r = l1literal P l1literal;
QCOMPARE(r, r2);
@@ -139,6 +130,10 @@ void tst_QStringBuilder::scenario()
QCOMPARE(r, r2);
r = LITERAL P string;
QCOMPARE(r, r2);
+ r = ba P string;
+ QCOMPARE(r, r2);
+ r = string P ba;
+ QCOMPARE(r, r2);
#endif
}