mirror of
https://github.com/QRouland/UTPass.git
synced 2025-06-30 09:12:29 +00:00
Add style command && applied new style format to existing code && setup tests plugins
This commit is contained in:
17
tests/plugins/TestGpg.cpp
Normal file
17
tests/plugins/TestGpg.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include <QtTest/QtTest>
|
||||
|
||||
class TestGpg: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private slots:
|
||||
void toUpper();
|
||||
};
|
||||
|
||||
void TestGpg::toUpper()
|
||||
{
|
||||
QString str = "Hello";
|
||||
QCOMPARE(str.toUpper(), QString("HELLO"));
|
||||
}
|
||||
|
||||
QTEST_MAIN(TestGpg)
|
||||
#include "TestGpg.moc"
|
17
tests/plugins/TestPass.cpp
Normal file
17
tests/plugins/TestPass.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#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"
|
Reference in New Issue
Block a user