encoding: provide FormattedOutputFunction for Block
refs #2225
Change-Id: Ie38539ff93293b3919789043b01e09b573fb619a
diff --git a/tests/unit-tests/key-locator.t.cpp b/tests/unit-tests/key-locator.t.cpp
index 05dc94a..ce3c6ae 100644
--- a/tests/unit-tests/key-locator.t.cpp
+++ b/tests/unit-tests/key-locator.t.cpp
@@ -52,7 +52,7 @@
wire.begin(), wire.end());
KeyLocator b(wire);
- BOOST_CHECK(a == b);
+ BOOST_CHECK_EQUAL(a, b);
BOOST_CHECK_EQUAL(b.getType(), KeyLocator::KeyLocator_None);
BOOST_CHECK_THROW(b.getName(), KeyLocator::Error);
BOOST_CHECK_THROW(b.getKeyDigest(), KeyLocator::Error);
@@ -83,7 +83,7 @@
wire.begin(), wire.end());
KeyLocator b(wire);
- BOOST_CHECK(a == b);
+ BOOST_CHECK_EQUAL(a, b);
BOOST_CHECK_EQUAL(b.getType(), KeyLocator::KeyLocator_Name);
BOOST_CHECK_EQUAL(b.getName(), Name("/N"));
BOOST_CHECK_THROW(b.getKeyDigest(), KeyLocator::Error);
@@ -100,7 +100,7 @@
KeyLocator a;
a.setKeyDigest(digestBuffer);
BOOST_CHECK_EQUAL(a.getType(), KeyLocator::KeyLocator_KeyDigest);
- BOOST_CHECK(a.getKeyDigest() == expectedDigestBlock);
+ BOOST_CHECK_EQUAL(a.getKeyDigest(), expectedDigestBlock);
BOOST_CHECK_THROW(a.getName(), KeyLocator::Error);
Block wire;
@@ -118,9 +118,9 @@
wire.begin(), wire.end());
KeyLocator b(wire);
- BOOST_CHECK(a == b);
+ BOOST_CHECK_EQUAL(a, b);
BOOST_CHECK_EQUAL(b.getType(), KeyLocator::KeyLocator_KeyDigest);
- BOOST_CHECK(b.getKeyDigest() == expectedDigestBlock);
+ BOOST_CHECK_EQUAL(b.getKeyDigest(), expectedDigestBlock);
BOOST_CHECK_THROW(b.getName(), KeyLocator::Error);
BOOST_CHECK_EQUAL(boost::lexical_cast<std::string>(b), "KeyDigest=123456789A...");