Make code self-documenting by using symbolic constants

This commit is contained in:
Nik Bougalis
2017-04-13 11:31:38 -07:00
committed by seelabs
parent 397410bac6
commit 3666948610
5 changed files with 28 additions and 33 deletions

View File

@@ -26,6 +26,7 @@
#include <ripple/ledger/Sandbox.h>
#include <ripple/core/ConfigSections.h>
#include <ripple/protocol/Feature.h>
#include <ripple/protocol/Protocol.h>
#include <type_traits>
namespace ripple {
@@ -873,9 +874,7 @@ class DirIsEmpty_test
env.fund(XRP(10000), becky, gw);
env.close();
// The DIR_NODE_MAX constant is hidden in View.cpp (Feb 2016). But,
// ideally, we'd verify we're doing a good test with the following:
// static_assert (64 >= (2 * DIR_NODE_MAX), "");
static_assert (64 >= (2 * dirNodeMaxEntries), "");
// Generate 64 currencies named AAA -> AAP and ADA -> ADP.
std::vector<IOU> currencies;