[PATCH 3 of 3] Do not verify Msec equality on the DateTime. We only store seconds
Wald Commits
scm-commit at wald.intevation.org
Wed Apr 23 18:54:21 CEST 2014
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1398272056 0
# Node ID bcae22d57e673059860ddbdf256fdd6549d2a4e7
# Parent 9cd28df2c4ce0e3549b59b8082ac4b40da0691ab
Do not verify Msec equality on the DateTime. We only store seconds
diff -r 9cd28df2c4ce -r bcae22d57e67 ui/tests/createcertlisttest.cpp
--- a/ui/tests/createcertlisttest.cpp Wed Apr 23 16:53:47 2014 +0000
+++ b/ui/tests/createcertlisttest.cpp Wed Apr 23 16:54:16 2014 +0000
@@ -49,7 +49,10 @@
CertificateList outputList = CertificateList(outputFile.fileName().toLocal8Bit().data());
QVERIFY(outputList.isValid());
QVERIFY(outputList.getCertificates() == validList.getCertificates());
- QVERIFY(outputList.date() == current);
+ QVERIFY(outputList.date().date() == current.date());
+ QVERIFY(outputList.date().time().hour() == current.time().hour());
+ QVERIFY(outputList.date().time().minute() == current.time().minute());
+ QVERIFY(outputList.date().time().second() == current.time().second());
}
void CreateCertListTest::testSha256Sum()
More information about the Trustbridge-commits
mailing list