mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Refactor FeatureBitset:
* Remove composite helper functions * Add set difference and Bitset/uint256 operators * Convert tests to use new feature bitset set difference operator
This commit is contained in:
@@ -95,11 +95,10 @@ struct BookDirs_test : public beast::unit_test::suite
|
||||
void run() override
|
||||
{
|
||||
using namespace jtx;
|
||||
test_bookdir(
|
||||
supported_features_except (featureFlow, fix1373, featureFlowCross));
|
||||
test_bookdir(
|
||||
supported_features_except ( featureFlowCross));
|
||||
test_bookdir(supported_amendments ());
|
||||
auto const sa = supported_amendments();
|
||||
test_bookdir(sa - featureFlow - fix1373 - featureFlowCross);
|
||||
test_bookdir(sa - featureFlowCross);
|
||||
test_bookdir(sa);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -88,7 +88,9 @@ struct Directory_test : public beast::unit_test::suite
|
||||
{
|
||||
testcase ("Directory Ordering (without 'SortedDirectories' amendment");
|
||||
|
||||
Env env(*this, supported_features_except(featureSortedDirectories));
|
||||
Env env(
|
||||
*this,
|
||||
supported_amendments().reset(featureSortedDirectories));
|
||||
env.fund(XRP(10000000), alice, bob, gw);
|
||||
|
||||
// Insert 400 offers from Alice, then one from Bob:
|
||||
|
||||
@@ -378,11 +378,10 @@ public:
|
||||
testBalanceHook(features);
|
||||
};
|
||||
using namespace jtx;
|
||||
testAll(
|
||||
supported_features_except (featureFlow, fix1373, featureFlowCross));
|
||||
testAll(
|
||||
supported_features_except ( featureFlowCross));
|
||||
testAll(supported_amendments());
|
||||
auto const sa = supported_amendments();
|
||||
testAll(sa - featureFlow - fix1373 - featureFlowCross);
|
||||
testAll(sa - featureFlowCross);
|
||||
testAll(sa);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user