mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-15 19:22:25 +08:00
16 lines
250 B
C++
16 lines
250 B
C++
|
#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"
|