diff options
author | hjk <qtc-committer@nokia.com> | 2009-10-30 09:55:29 (GMT) |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2009-10-30 09:55:29 (GMT) |
commit | d670ef51fe76adccd6f4d017f6a23940ab5284ee (patch) | |
tree | a538803d9fe52630ed77a5d2c5992fbbf022992e /tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp | |
parent | 1b0dad4d1c9b3693b6fb9c93d8dc06a4eaf42d83 (diff) | |
download | Qt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.zip Qt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.tar.gz Qt-d670ef51fe76adccd6f4d017f6a23940ab5284ee.tar.bz2 |
rename qstringbuilder test classes
Diffstat (limited to 'tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp')
-rw-r--r-- | tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp b/tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp index bd2e4b0..30f0181 100644 --- a/tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp +++ b/tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp @@ -39,4 +39,35 @@ ** ****************************************************************************/ + +// SCENARIO 3 +// this is the "no harm done" version. Only operator% is active, +// with NO_CAST * _not_ defined +#define P % +#undef QT_USE_FAST_OPERATOR_PLUS +#undef QT_USE_FAST_CONCATENATION +#undef QT_NO_CAST_FROM_ASCII +#undef QT_NO_CAST_TO_ASCII + + +#include <QtTest/QtTest> + +//TESTED_CLASS=QStringBuilder +//TESTED_FILES=qstringbuilder.cpp + +#define LITERAL "some literal" + +void runScenario(); // Defined in stringbuilder.cpp #included below. + +class tst_QStringBuilder3 : public QObject +{ + Q_OBJECT + +private slots: + void scenario() { runScenario(); } +}; + #include "../qstringbuilder1/stringbuilder.cpp" +#include "tst_qstringbuilder3.moc" + +QTEST_APPLESS_MAIN(tst_QStringBuilder3) |