diff options
author | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-12-19 20:58:22 +0800 |
---|---|---|
committer | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-12-19 20:58:22 +0800 |
commit | c6d2c2392bd3f36f4539d990f60f9136e158d136 (patch) | |
tree | c1b6875165493b33752d9c283a00643b031c60e7 /genesis.cpp | |
parent | 180b0fa9e3aab595048d171ff4556a769f85dd1e (diff) | |
parent | 69319de1db7daedd24b0ac00a8b245bbd9f6042e (diff) | |
download | dexon-solidity-c6d2c2392bd3f36f4539d990f60f9136e158d136.tar.gz dexon-solidity-c6d2c2392bd3f36f4539d990f60f9136e158d136.tar.zst dexon-solidity-c6d2c2392bd3f36f4539d990f60f9136e158d136.zip |
Merge branch 'develop-evmcc' into pr-jit
Conflicts:
windows/Eth.vcxproj
windows/TestEthereum.vcxproj
Diffstat (limited to 'genesis.cpp')
-rw-r--r-- | genesis.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/genesis.cpp b/genesis.cpp index 2cd9221a..8cdb8402 100644 --- a/genesis.cpp +++ b/genesis.cpp @@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>. */ -/** @file trie.cpp +/** @file genesis.cpp * @author Gav Wood <i@gavwood.com> * @date 2014 * Trie test functions. @@ -36,6 +36,15 @@ namespace js = json_spirit; BOOST_AUTO_TEST_SUITE(BasicTests) +BOOST_AUTO_TEST_CASE(emptySHA3Types) +{ + h256 emptyListSHA3(fromHex("1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347")); + BOOST_REQUIRE_EQUAL(emptyListSHA3, EmptyListSHA3); + + h256 emptySHA3(fromHex("c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470")); + BOOST_REQUIRE_EQUAL(emptySHA3, EmptySHA3); +} + BOOST_AUTO_TEST_CASE(genesis_tests) { string testPath = test::getTestPath(); |