diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-20 18:19:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-20 18:19:12 +0800 |
commit | d8fe8f60e84f599a92783bd690b8d3477cf5a595 (patch) | |
tree | 1b6cc5040185af843623af900a4112ef5ca11a81 /Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp | |
parent | 62236dd95e6d069b8bd9895c9998676b8d946d37 (diff) | |
download | go-tangerine-d8fe8f60e84f599a92783bd690b8d3477cf5a595.tar go-tangerine-d8fe8f60e84f599a92783bd690b8d3477cf5a595.tar.gz go-tangerine-d8fe8f60e84f599a92783bd690b8d3477cf5a595.tar.bz2 go-tangerine-d8fe8f60e84f599a92783bd690b8d3477cf5a595.tar.lz go-tangerine-d8fe8f60e84f599a92783bd690b8d3477cf5a595.tar.xz go-tangerine-d8fe8f60e84f599a92783bd690b8d3477cf5a595.tar.zst go-tangerine-d8fe8f60e84f599a92783bd690b8d3477cf5a595.zip |
updated ethash
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp')
-rw-r--r-- | Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp b/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp index 21cb251fc..8c854ecbd 100644 --- a/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp +++ b/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp @@ -17,7 +17,7 @@ #include <boost/test/unit_test.hpp> #include <iostream> -std::string bytesToHexString(const uint8_t *str, const size_t s) { +std::string bytesToHexString(const uint8_t *str, const uint32_t s) { std::ostringstream ret; for (int i = 0; i < s; ++i) @@ -80,9 +80,11 @@ BOOST_AUTO_TEST_CASE(ethash_params_init_genesis_check) { BOOST_AUTO_TEST_CASE(ethash_params_init_genesis_calcifide_check) { ethash_params params; - ethash_params_init(¶ms, 0); - const uint32_t expected_full_size = 1073739904; - const uint32_t expected_cache_size = 16776896; + BOOST_REQUIRE_MESSAGE(ethash_params_init(¶ms, 0), + "Params could not be initialized"); + const uint32_t + expected_full_size = 1073739904, + expected_cache_size = 16776896; BOOST_REQUIRE_MESSAGE(params.full_size == expected_full_size, "\nexpected: " << expected_cache_size << "\n" << "actual: " << params.full_size << "\n"); |