5 #ifndef PIVX_TEST_LIBRUST_JSON_TEST_VECTORS_H
6 #define PIVX_TEST_LIBRUST_JSON_TEST_VECTORS_H
15 #include <boost/test/unit_test.hpp>
28 auto serialized_size =
ss1.size();
37 BOOST_ASSERT(serialized_size ==
ss2.size());
41 template<
typename T,
typename U>
53 std::string raw = v.get_str();
#define T(expected, seed, data)
void expect_deser_same(const T &expected)
void expect_test_vector(T &v, const U &expected)
UniValue read_json(const std::string &jsondata)
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
std::string HexStr(const Span< const uint8_t > s)
Convert a span of bytes to a lower-case hexadecimal string.
std::vector< unsigned char > ParseHex(const char *psz)