Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

testqstring.cpp Example File
qtestlib/tutorial1/testqstring.cpp

    #include <QtTest/QtTest>

    class TestQString: public QObject
    {
        Q_OBJECT
    private slots:
        void toUpper();
    };

    void TestQString::toUpper()
    {
        QString str = "Hello";
        QCOMPARE(str.toUpper(), QString("HELLO"));
    }

    QTEST_MAIN(TestQString)
    #include "testqstring.moc"


Copyright © 2005 Trolltech Trademarks
Qt 4.1.0
Hosted by uCoz