mirror of
https://github.com/QRouland/UTPass.git
synced 2024-11-14 11:32:39 +00:00
17 lines
255 B
C++
17 lines
255 B
C++
#include <QtTest/QtTest>
|
|
|
|
class TestPass: public QObject
|
|
{
|
|
Q_OBJECT
|
|
private slots:
|
|
void toUpper();
|
|
};
|
|
|
|
void TestPass::toUpper()
|
|
{
|
|
QString str = "Hello";
|
|
QCOMPARE(str.toUpper(), QString("HELLO"));
|
|
}
|
|
|
|
QTEST_MAIN(TestPass)
|
|
#include "TestPass.moc" |