aboutsummaryrefslogtreecommitdiffstats
path: root/hexPrefix.cpp
diff options
context:
space:
mode:
authorChristoph Jentzsch <jentzsch.software@gmail.com>2014-11-03 23:33:02 +0800
committerChristoph Jentzsch <jentzsch.software@gmail.com>2014-11-03 23:33:02 +0800
commit6eeef2762c0e784bf0c44793376a70430575d34d (patch)
treed8bc55513734f16a88cdc35dc2469c405e509a36 /hexPrefix.cpp
parentbc1aaa78a8fc2954e45e5cea9118f61aec16ad80 (diff)
downloaddexon-solidity-6eeef2762c0e784bf0c44793376a70430575d34d.tar.gz
dexon-solidity-6eeef2762c0e784bf0c44793376a70430575d34d.tar.zst
dexon-solidity-6eeef2762c0e784bf0c44793376a70430575d34d.zip
Clean up and organize tests + state class tests
Diffstat (limited to 'hexPrefix.cpp')
-rw-r--r--hexPrefix.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/hexPrefix.cpp b/hexPrefix.cpp
index 99207ab9..1f02bac9 100644
--- a/hexPrefix.cpp
+++ b/hexPrefix.cpp
@@ -26,23 +26,19 @@
#include <libdevcore/CommonIO.h>
#include <libdevcrypto/TrieCommon.h>
#include <boost/test/unit_test.hpp>
+#include "TestHelper.h"
using namespace std;
using namespace dev;
namespace js = json_spirit;
+BOOST_AUTO_TEST_SUITE(BasicTests)
+
BOOST_AUTO_TEST_CASE(hexPrefix_test)
{
- const char* ptestPath = getenv("ETHEREUM_TEST_PATH");
- string testPath;
- if (ptestPath == NULL)
- {
- cnote << " could not find environment variable ETHEREUM_TEST_PATH \n";
- testPath = "../../../tests";
- }
- else
- testPath = ptestPath;
+ string testPath = test::getTestPath();
+ testPath += "/BasicTests";
cnote << "Testing Hex-Prefix-Encode...";
js::mValue v;
@@ -62,3 +58,4 @@ BOOST_AUTO_TEST_CASE(hexPrefix_test)
}
}
+BOOST_AUTO_TEST_SUITE_END()