 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
7 #include <boost/test/unit_test.hpp>
10 using namespace std::literals;
16 static const std::string vstrIn[] = {
"",
"f",
"fo",
"foo",
"foob",
"fooba",
"foobar"};
17 static const std::string vstrOut[] = {
"",
"my======",
"mzxq====",
"mzxw6===",
"mzxw6yq=",
"mzxw6ytb",
"mzxw6ytboi======"};
18 static const std::string vstrOutNoPadding[] = {
"",
"my",
"mzxq",
"mzxw6",
"mzxw6yq",
"mzxw6ytb",
"mzxw6ytboi"};
19 for (
unsigned int i=0; i<std::size(vstrIn); i++)
BOOST_AUTO_TEST_SUITE(cuckoocache_tests)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_CASE(base32_testvectors)
BOOST_AUTO_TEST_SUITE_END()
std::string EncodeBase32(Span< const unsigned char > input, bool pad)
Base32 encode.
std::vector< unsigned char > DecodeBase32(const char *p, bool *pf_invalid)
#define BOOST_CHECK(expr)
#define BOOST_CHECK_EQUAL(v1, v2)