diff options
author | Gav Wood <i@gavwood.com> | 2014-09-05 23:09:58 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-09-05 23:09:58 +0800 |
commit | 38dd3fb050cae0bc28205ecff8591fa44605efc7 (patch) | |
tree | a7a8c238e98f1ec02fe02aaf51c645bb494a27d3 /trie.cpp | |
parent | d0d1e91a685dda428af9dd41a3afd83424dc5775 (diff) | |
download | dexon-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.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -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; |