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_CASE(base32_testvectors)
BOOST_AUTO_TEST_SUITE(cuckoocache_tests)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_SUITE_END()
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
Span< const std::byte > MakeByteSpan(V &&v) noexcept
std::string EncodeBase32(Span< const unsigned char > input, bool pad)
Base32 encode.
std::optional< std::vector< unsigned char > > DecodeBase32(std::string_view str)