aboutsummaryrefslogtreecommitdiffstats
path: root/trie.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-09-05 23:09:58 +0800
committerGav Wood <i@gavwood.com>2014-09-05 23:09:58 +0800
commit38dd3fb050cae0bc28205ecff8591fa44605efc7 (patch)
treea7a8c238e98f1ec02fe02aaf51c645bb494a27d3 /trie.cpp
parentd0d1e91a685dda428af9dd41a3afd83424dc5775 (diff)
downloaddexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.tar.gz
dexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.tar.zst
dexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.zip
Project-wide reorganisation of namespaces.
Diffstat (limited to 'trie.cpp')
-rw-r--r--trie.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/trie.cpp b/trie.cpp
index b28be8b1..4ddf30a6 100644
--- a/trie.cpp
+++ b/trie.cpp
@@ -29,22 +29,23 @@
#include <boost/test/unit_test.hpp>
using namespace std;
-using namespace eth;
+using namespace dev;
+using namespace dev::eth;
namespace js = json_spirit;
-namespace eth
-{
- namespace test
- {
- static unsigned fac(unsigned _i)
- {
- return _i > 2 ? _i * fac(_i - 1) : _i;
- }
+namespace dev
+{
+namespace test
+{
- }
+static unsigned fac(unsigned _i)
+{
+ return _i > 2 ? _i * fac(_i - 1) : _i;
}
+}
+}
BOOST_AUTO_TEST_CASE(trie_tests)
{
@@ -66,7 +67,7 @@ BOOST_AUTO_TEST_CASE(trie_tests)
if (!ss.back().second.find("0x"))
ss.back().second = asString(fromHex(ss.back().second.substr(2)));
}
- for (unsigned j = 0; j < min(1000u, eth::test::fac((unsigned)ss.size())); ++j)
+ for (unsigned j = 0; j < min(1000u, dev::test::fac((unsigned)ss.size())); ++j)
{
next_permutation(ss.begin(), ss.end());
MemoryDB m;