FreeKill/test/test.cpp

16 lines
250 B
C++
Raw Normal View History

#include <QTest>
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 "test.moc"