FreeKill/test/test.cpp
notify f0ffd68ff2
Some checks failed
Check Whitespace and New Line / check (push) Has been cancelled
Deploy Doxygen to Pages / pages (push) Has been cancelled
Doxygen and test (#385)
- 删除ModMaker
- 拆出main.cpp以便CMake
- Doxygen注释,以及CI(没测试过)
2024-10-17 19:00:02 +08:00

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"