26 #include <boost/test/unit_test.hpp> 44 h256 emptyListSHA3(
fromHex(
"1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"));
47 h256 emptySHA3(
fromHex(
"c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"));
48 BOOST_REQUIRE_EQUAL(emptySHA3,
EmptySHA3);
54 testPath +=
"/BasicTests";
56 cnote <<
"Testing Genesis block...";
59 BOOST_REQUIRE_MESSAGE(s.length() > 0,
"Contents of 'genesishashestest.json' is empty. Have you cloned the 'tests' repo branch develop?");
const Object & get_obj() const
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::string toHex(T const &_data, int _w=2, HexPrefix _prefix=HexPrefix::DontAdd)
h256 calculateStateRoot(bool _force=false) const
BOOST_AUTO_TEST_CASE(emptySHA3Types)
bytes genesisBlock() const
Genesis block info.
h256 const & genesisStateRoot(Network _n)
std::hash for asio::adress
std::string contentsString(std::string const &_file)
Retrieve and returns the contents of the given file as a std::string.
bytes fromHex(std::string const &_s, WhenError _throw=WhenError::DontThrow)
bool read_string(const String_type &s, Value_type &value)
std::string getTestPath()
mConfig::Object_type mObject
std::string const & genesisInfo(Network _n)
#define BOOST_FIXTURE_TEST_SUITE(a, b)
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_AUTO_TEST_SUITE_END()
std::string get_str(std::string::const_iterator begin, std::string::const_iterator end)
Helper functions to work with json::spirit and test files.