9 #include <boost/test/unit_test.hpp>
15 std::vector<unsigned char> bytes = {0x00, 0x01, 0x03, 0x12, 0xFF};
16 std::vector<bool> expected_bits = {
18 0, 0, 0, 0, 0, 0, 0, 0,
20 0, 0, 0, 0, 0, 0, 0, 1,
22 0, 0, 0, 0, 0, 0, 1, 1,
24 0, 0, 0, 1, 0, 0, 1, 0,
26 1, 1, 1, 1, 1, 1, 1, 1
45 std::vector<bool> v(63, 1);
50 std::vector<bool> v(64, 1);
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(saplingConvertBytesVectorToVector)
#define BOOST_CHECK_THROW(stmt, excMatch)
#define BOOST_FIXTURE_TEST_SUITE(a, b)
#define BOOST_CHECK(expr)
uint64_t convertVectorToInt(const std::vector< bool > &v)
std::vector< bool > convertBytesVectorToVector(const std::vector< unsigned char > &bytes)