1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-06-30 09:12:29 +00:00
This commit is contained in:
2019-03-22 00:11:36 +01:00
parent 7dc320f8ce
commit 2390cc983b
20 changed files with 67 additions and 135 deletions

View File

@ -1,17 +0,0 @@
#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"

View File

@ -1,17 +0,0 @@
#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"

10
tests/unit/tst_gpg.qml Normal file
View File

@ -0,0 +1,10 @@
import QtTest 1.0
import Ubuntu.Test 1.0
import Gpg 1.0
UbuntuTestCase {
name: "GpgTests"
function test_empty_gnuhome() {
Gpg::getListIds().empty()
}
}