encoding: provide FormattedOutputFunction for Block
refs #2225
Change-Id: Ie38539ff93293b3919789043b01e09b573fb619a
diff --git a/tests/unit-tests/signature-info.t.cpp b/tests/unit-tests/signature-info.t.cpp
index 836c114..f5cf102 100644
--- a/tests/unit-tests/signature-info.t.cpp
+++ b/tests/unit-tests/signature-info.t.cpp
@@ -195,7 +195,7 @@
info.setKeyLocator(KeyLocator("/test/key/locator"));
info.setValidityPeriod(vp1);
- BOOST_CHECK(info.getValidityPeriod() == vp1);
+ BOOST_CHECK_EQUAL(info.getValidityPeriod(), vp1);
const Block& encoded = info.wireEncode();
@@ -206,7 +206,7 @@
Block block(sigInfo, sizeof(sigInfo));
SignatureInfo info2;
info2.wireDecode(block);
- BOOST_CHECK(info2.getValidityPeriod() == vp1);
+ BOOST_CHECK_EQUAL(info2.getValidityPeriod(), vp1);
const security::ValidityPeriod& validityPeriod = info2.getValidityPeriod();
BOOST_CHECK(validityPeriod.getPeriod() == std::make_pair(notBefore, notAfter));