diff options
author | Gav Wood <i@gavwood.com> | 2014-12-12 22:31:24 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-12-12 22:31:24 +0800 |
commit | 73a2647474251168cde3febc6708eaa4d751e19d (patch) | |
tree | b2feaffb2c4da4be796821a1088b3f526c8936e3 /trie.cpp | |
parent | c9ccbe2562c35ecb957dc52f72dfc9c9555335e5 (diff) | |
download | dexon-solidity-73a2647474251168cde3febc6708eaa4d751e19d.tar.gz dexon-solidity-73a2647474251168cde3febc6708eaa4d751e19d.tar.zst dexon-solidity-73a2647474251168cde3febc6708eaa4d751e19d.zip |
Fix tests.
Diffstat (limited to 'trie.cpp')
-rw-r--r-- | trie.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -59,8 +59,8 @@ BOOST_AUTO_TEST_CASE(trie_tests) cnote << "Testing Trie..."; js::mValue v; - string s = asString(contents(testPath + "/trietest.json")); - BOOST_REQUIRE_MESSAGE(s.length() > 0, "Contents of 'trietest.json' is empty. Have you cloned the 'tests' repo branch develop?"); + string s = asString(contents(testPath + "/trieanyorder.json")); + BOOST_REQUIRE_MESSAGE(s.length() > 0, "Contents of 'trieanyorder.json' is empty. Have you cloned the 'tests' repo branch develop?"); js::read_string(s, v); for (auto& i: v.get_obj()) { @@ -88,12 +88,11 @@ BOOST_AUTO_TEST_CASE(trie_tests) BOOST_REQUIRE(t.check(true)); } BOOST_REQUIRE(!o["root"].is_null()); - BOOST_CHECK_EQUAL(o["root"].get_str(), toHex(t.root().asArray())); + BOOST_CHECK_EQUAL(o["root"].get_str(), "0x" + toHex(t.root().asArray())); } } } - inline h256 stringMapHash256(StringMap const& _s) { return hash256(_s); |