mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-10 04:33:59 +01:00
refactor: Remove Span operator==, Use std::ranges::equal
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include <util/strencodings.h>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
|
||||
using namespace std::literals;
|
||||
@@ -21,7 +23,7 @@ BOOST_AUTO_TEST_CASE(base64_testvectors)
|
||||
BOOST_CHECK_EQUAL(strEnc, vstrOut[i]);
|
||||
auto dec = DecodeBase64(strEnc);
|
||||
BOOST_REQUIRE(dec);
|
||||
BOOST_CHECK_MESSAGE(MakeByteSpan(*dec) == MakeByteSpan(vstrIn[i]), vstrOut[i]);
|
||||
BOOST_CHECK_MESSAGE(std::ranges::equal(*dec, vstrIn[i]), vstrOut[i]);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user