aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/ethereum/ethash/test
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-03-24 11:23:54 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-03-24 22:51:51 +0800
commitb0c4dc8df874442e8ad7bcd55dfa13d6ea75c0e1 (patch)
tree591bfa21aaefba999a0300f9957d91082868bba6 /Godeps/_workspace/src/github.com/ethereum/ethash/test
parent118b79eca7500c1770db2e3fd28cfdea6370befd (diff)
downloadgo-tangerine-b0c4dc8df874442e8ad7bcd55dfa13d6ea75c0e1.tar.gz
go-tangerine-b0c4dc8df874442e8ad7bcd55dfa13d6ea75c0e1.tar.zst
go-tangerine-b0c4dc8df874442e8ad7bcd55dfa13d6ea75c0e1.zip
Update ethash lib
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/ethash/test')
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp10
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/ethash/test/test.sh7
2 files changed, 9 insertions, 8 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 8c854ecbd..21cb251fc 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 uint32_t s) {
+std::string bytesToHexString(const uint8_t *str, const size_t s) {
std::ostringstream ret;
for (int i = 0; i < s; ++i)
@@ -80,11 +80,9 @@ BOOST_AUTO_TEST_CASE(ethash_params_init_genesis_check) {
BOOST_AUTO_TEST_CASE(ethash_params_init_genesis_calcifide_check) {
ethash_params params;
- BOOST_REQUIRE_MESSAGE(ethash_params_init(&params, 0),
- "Params could not be initialized");
- const uint32_t
- expected_full_size = 1073739904,
- expected_cache_size = 16776896;
+ ethash_params_init(&params, 0);
+ const uint32_t expected_full_size = 1073739904;
+ const uint32_t expected_cache_size = 16776896;
BOOST_REQUIRE_MESSAGE(params.full_size == expected_full_size,
"\nexpected: " << expected_cache_size << "\n"
<< "actual: " << params.full_size << "\n");
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/test/test.sh b/Godeps/_workspace/src/github.com/ethereum/ethash/test/test.sh
index 71e53d978..fd3508609 100644
--- a/Godeps/_workspace/src/github.com/ethereum/ethash/test/test.sh
+++ b/Godeps/_workspace/src/github.com/ethereum/ethash/test/test.sh
@@ -14,8 +14,11 @@ TEST_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
echo -e "\n################# Testing JS ##################"
# TODO: Use mocha and real testing tools instead of rolling our own
cd $TEST_DIR/../js
-if [ -x "$(which npm)" ] ; then
- npm test
+if [ -x "$(which nodejs)" ] ; then
+ nodejs test.js
+fi
+if [ -x "$(which node)" ] ; then
+ node test.js
fi
echo -e "\n################# Testing C ##################"