diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-12-09 23:54:05 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-12-09 23:54:05 +0800 |
commit | 5a5973fc24df71f66221616f26527f02ce9eff9e (patch) | |
tree | 7a19238cc1f1d979842c5ead518d1c79eab94fa1 /genesis.cpp | |
parent | 1d8593a17786085f2fd3627ca274fd3e8391294a (diff) | |
download | dexon-solidity-5a5973fc24df71f66221616f26527f02ce9eff9e.tar dexon-solidity-5a5973fc24df71f66221616f26527f02ce9eff9e.tar.gz dexon-solidity-5a5973fc24df71f66221616f26527f02ce9eff9e.tar.bz2 dexon-solidity-5a5973fc24df71f66221616f26527f02ce9eff9e.tar.lz dexon-solidity-5a5973fc24df71f66221616f26527f02ce9eff9e.tar.xz dexon-solidity-5a5973fc24df71f66221616f26527f02ce9eff9e.tar.zst dexon-solidity-5a5973fc24df71f66221616f26527f02ce9eff9e.zip |
empty sha test && common fix on mac
Diffstat (limited to 'genesis.cpp')
-rw-r--r-- | genesis.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/genesis.cpp b/genesis.cpp index 6839d42e..90974d1b 100644 --- a/genesis.cpp +++ b/genesis.cpp @@ -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(); |