diff options
Diffstat (limited to 'kunittest/example')
-rw-r--r-- | kunittest/example/module/sampleextra.cpp | 2 | ||||
-rw-r--r-- | kunittest/example/module/samplemodule2.cpp | 8 | ||||
-rw-r--r-- | kunittest/example/module/sampletests.cpp | 12 | ||||
-rw-r--r-- | kunittest/example/module/sampletests.h | 2 | ||||
-rw-r--r-- | kunittest/example/simple/sampletest.cpp | 8 |
5 files changed, 16 insertions, 16 deletions
diff --git a/kunittest/example/module/sampleextra.cpp b/kunittest/example/module/sampleextra.cpp index 38c49448..fa17aa6c 100644 --- a/kunittest/example/module/sampleextra.cpp +++ b/kunittest/example/module/sampleextra.cpp @@ -33,5 +33,5 @@ void SomeExtraTester::allTests() { kdDebug() << "Debug output belonging to SomeExtraTester." << endl; - CHECK( QString("Extra") , QString("Extra") ); + CHECK( TQString("Extra") , TQString("Extra") ); } diff --git a/kunittest/example/module/samplemodule2.cpp b/kunittest/example/module/samplemodule2.cpp index 87efde28..672ec08a 100644 --- a/kunittest/example/module/samplemodule2.cpp +++ b/kunittest/example/module/samplemodule2.cpp @@ -23,7 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <qstringlist.h> +#include <tqstringlist.h> #include <kdebug.h> #include <kunittest/runner.h> @@ -40,7 +40,7 @@ KUNITTEST_MODULE_REGISTER_TESTER( SomeSampleTester ) void SimpleSampleTester::allTests() { kdDebug() << "Debug output belonging to SimpleSampleTester." << endl; - CHECK( QString("SimpleSample") , QString("SimpleSample") ); + CHECK( TQString("SimpleSample") , TQString("SimpleSample") ); // operator == is used, so this can't work... //XFAIL( "SimpleSample" , "SampleSimple" ); @@ -55,7 +55,7 @@ void SomeSampleTester::allTests() kdDebug() << "Checking operator precedences." << endl; CHECK( 2.0 * 3.0 / 2.0 * 4.0 / 2.0 , 6.0 ); - QStringList testList; + TQStringList testList; testList << "one" << "two"; - CHECK( testList.count() , (QStringList::size_type) 2 ); + CHECK( testList.count() , (TQStringList::size_type) 2 ); } diff --git a/kunittest/example/module/sampletests.cpp b/kunittest/example/module/sampletests.cpp index 3b253e55..89e7516a 100644 --- a/kunittest/example/module/sampletests.cpp +++ b/kunittest/example/module/sampletests.cpp @@ -23,7 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <qstringlist.h> +#include <tqstringlist.h> #include <kdebug.h> #include <kunittest/runner.h> @@ -35,7 +35,7 @@ void SlotSampleTester::setUp() { kdDebug() << "setUp" << endl; - m_str = new QString("setUp str"); + m_str = new TQString("setUp str"); } void SlotSampleTester::tearDown() @@ -56,7 +56,7 @@ void SlotSampleTester::testSlot() CHECK( test() , true); CHECK( "test" , "test"); kdDebug() << "Checking if m_str is initialized correctly." << endl; - CHECK( *m_str , QString("setUp str") ); + CHECK( *m_str , TQString("setUp str") ); } void SlotSampleTester::testSlot2() @@ -72,10 +72,10 @@ void SomeSampleTester::allTests() kdDebug() << "Checking operator precedences." << endl; CHECK( 2.0 * 3.0 / 2.0 * 4.0 / 2.0 , 6.0 ); - QStringList testList; + TQStringList testList; testList << "one" << "two"; - CHECK( testList.count() , (QStringList::size_type) 2 ); - CHECK( testList.count()*2 , (QStringList::size_type) 4 ); + CHECK( testList.count() , (TQStringList::size_type) 2 ); + CHECK( testList.count()*2 , (TQStringList::size_type) 4 ); } #include "sampletests.moc" diff --git a/kunittest/example/module/sampletests.h b/kunittest/example/module/sampletests.h index 63ff6e44..3cd30211 100644 --- a/kunittest/example/module/sampletests.h +++ b/kunittest/example/module/sampletests.h @@ -41,7 +41,7 @@ public slots: private: bool test(); - QString *m_str; + TQString *m_str; }; class SomeSampleTester : public KUnitTest::Tester diff --git a/kunittest/example/simple/sampletest.cpp b/kunittest/example/simple/sampletest.cpp index 32d97703..846d514f 100644 --- a/kunittest/example/simple/sampletest.cpp +++ b/kunittest/example/simple/sampletest.cpp @@ -23,7 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <qstringlist.h> +#include <tqstringlist.h> #include <kdebug.h> #include <kunittest/runner.h> @@ -39,7 +39,7 @@ KUNITTEST_REGISTER_TESTER(SomeSampleTester); void SimpleSampleTester::allTests() { kdDebug() << "Debug output belonging to SimpleSampleTester." << endl; - CHECK( QString("SimpleSample") , QString("SimpleSample") ); + CHECK( TQString("SimpleSample") , TQString("SimpleSample") ); SKIP("Just curious how this 'skipping' works."); } @@ -49,7 +49,7 @@ void SomeSampleTester::allTests() kdDebug() << "Checking operator precedences." << endl; CHECK( 2.0 * 3.0 / 2.0 * 4.0 / 2.0 , 6.0 ); - QStringList testList; + TQStringList testList; testList << "one" << "two"; - CHECK( testList.count() , (QStringList::size_type) 2 ); + CHECK( testList.count() , (TQStringList::size_type) 2 ); } |