[Pkg-gnupg-commit] [gpgme] 203/412: Qt: Add check for pubkeyAlgo in t-keylist
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Sep 22 21:26:47 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gpgme.
commit 9f93346d21271b916f15d80420669f5d659a40de
Author: Andre Heinecke <aheinecke at intevation.de>
Date: Wed Jul 6 13:39:43 2016 +0200
Qt: Add check for pubkeyAlgo in t-keylist
* lang/qt/tests/t-keylist.cpp (testSingleKeyListSync): Check
pubkeyAlgo.
---
lang/qt/tests/t-keylist.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lang/qt/tests/t-keylist.cpp b/lang/qt/tests/t-keylist.cpp
index 5d63fca..591a552 100644
--- a/lang/qt/tests/t-keylist.cpp
+++ b/lang/qt/tests/t-keylist.cpp
@@ -58,6 +58,10 @@ private Q_SLOTS:
Q_ASSERT (keys.size() == 1);
const QString kId = QLatin1String(keys.front().keyID());
Q_ASSERT (kId == QStringLiteral("2D727CC768697734"));
+
+ Q_ASSERT (keys[0].subkeys().size() == 2);
+ Q_ASSERT (keys[0].subkeys()[0].publicKeyAlgorithm() == Subkey::AlgoDSA);
+ Q_ASSERT (keys[0].subkeys()[1].publicKeyAlgorithm() == Subkey::AlgoELG_E);
}
void testKeyListAsync()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list