diff options
author | Christoph Jentzsch <jentzsch.software@gmail.com> | 2014-11-03 23:33:02 +0800 |
---|---|---|
committer | Christoph Jentzsch <jentzsch.software@gmail.com> | 2014-11-03 23:33:02 +0800 |
commit | 6eeef2762c0e784bf0c44793376a70430575d34d (patch) | |
tree | d8bc55513734f16a88cdc35dc2469c405e509a36 /trie.cpp | |
parent | bc1aaa78a8fc2954e45e5cea9118f61aec16ad80 (diff) | |
download | dexon-solidity-6eeef2762c0e784bf0c44793376a70430575d34d.tar.gz dexon-solidity-6eeef2762c0e784bf0c44793376a70430575d34d.tar.zst dexon-solidity-6eeef2762c0e784bf0c44793376a70430575d34d.zip |
Clean up and organize tests + state class tests
Diffstat (limited to 'trie.cpp')
-rw-r--r-- | trie.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -28,6 +28,7 @@ #include "TrieHash.h" #include "MemTrie.h" #include <boost/test/unit_test.hpp> +#include "TestHelper.h" using namespace std; using namespace dev; @@ -47,18 +48,14 @@ static unsigned fac(unsigned _i) } } +BOOST_AUTO_TEST_SUITE(TrieTests) + BOOST_AUTO_TEST_CASE(trie_tests) { - const char* ptestPath = getenv("ETHEREUM_TEST_PATH"); - string testPath; + string testPath = test::getTestPath(); - if (ptestPath == NULL) - { - cnote << " could not find environment variable ETHEREUM_TEST_PATH \n"; - testPath = "../../../tests"; - } - else - testPath = ptestPath; + + testPath += "/TrieTests"; cnote << "Testing Trie..."; js::mValue v; @@ -364,3 +361,6 @@ BOOST_AUTO_TEST_CASE(trieStess) } } +BOOST_AUTO_TEST_SUITE_END() + + |