name: convert to span
Change-Id: I805936731948732114762d0d022d1b447622788d
diff --git a/tests/unit/encoding/block.t.cpp b/tests/unit/encoding/block.t.cpp
index a39df87..e7c8bac 100644
--- a/tests/unit/encoding/block.t.cpp
+++ b/tests/unit/encoding/block.t.cpp
@@ -111,7 +111,6 @@
};
Block b1(buf);
-
Block b2(b1, b1.begin(), b1.end());
auto buf2 = b2.getBuffer();
@@ -120,9 +119,8 @@
b1.encode();
b2.parse();
-
- BOOST_CHECK_EQUAL_COLLECTIONS(b2.begin(), b2.end(), buf, buf + sizeof(buf));
- BOOST_CHECK_EQUAL(buf2, b2.getBuffer());
+ BOOST_TEST(b2 == buf, boost::test_tools::per_element());
+ BOOST_TEST(buf2 == b2.getBuffer()); // check pointers
}
BOOST_AUTO_TEST_CASE(FromBlockCopyOnWriteModifyCopy)
@@ -133,7 +131,6 @@
Block b1(buf);
auto buf1 = b1.getBuffer();
-
Block b2(b1, b1.begin(), b1.end());
b2.parse();
@@ -141,8 +138,8 @@
b2.encode();
b1.parse();
- BOOST_CHECK_EQUAL_COLLECTIONS(b1.begin(), b1.end(), buf, buf + sizeof(buf));
- BOOST_CHECK_EQUAL(buf1, b1.getBuffer());
+ BOOST_TEST(b1 == buf, boost::test_tools::per_element());
+ BOOST_TEST(buf1 == b1.getBuffer()); // check pointers
}
BOOST_AUTO_TEST_CASE(FromType)