aboutsummaryrefslogtreecommitdiff
path: root/tests/testqstring.cpp
blob: 20ecf783b990c0fa1e9bd151bfbe240710df15d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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"