10#include <boost/test/unit_test.hpp>
12BOOST_AUTO_TEST_SUITE(script_parse_tests)
15 const std::vector<std::pair<std::string,std::string>> IN_OUT{
44 for (
const auto& [in,
out] : IN_OUT) {
46 all_in +=
" " + in +
" ";
BOOST_CHECK_EXCEPTION predicates to check the specific validation error.
CScript ParseScript(const std::string &s)
BOOST_AUTO_TEST_SUITE_END()
std::string HexStr(const std::span< const uint8_t > s)
Convert a span of bytes to a lower-case hexadecimal string.
BOOST_CHECK_EQUAL(headers.FindFirst("key"), "value")
BOOST_CHECK_EXCEPTION(HTTPHeaders{}.Read(reader), std::runtime_error, HasReason{"Empty HTTP header name"})
BOOST_AUTO_TEST_CASE(parse_script)