mirror of
https://github.com/QRouland/UTPass.git
synced 2025-06-30 09:12:29 +00:00
UP
This commit is contained in:
@ -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"
|
@ -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
10
tests/unit/tst_gpg.qml
Normal 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()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user