mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use template for UnitTest
This commit is contained in:
@@ -133,12 +133,11 @@ void Random::fillBitsRandomly (BigInteger& arrayToChange, int startBit, int numB
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
#if BEAST_UNIT_TESTS
|
||||
|
||||
class RandomTests : public UnitTest
|
||||
class RandomTests : public UnitTestType <RandomTests>
|
||||
{
|
||||
public:
|
||||
RandomTests() : UnitTest ("Random") {}
|
||||
RandomTests() : UnitTestType <RandomTests> ("Random") {}
|
||||
|
||||
void runTest()
|
||||
{
|
||||
@@ -166,6 +165,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
static RandomTests randomTests;
|
||||
|
||||
#if BEAST_UNIT_TESTS
|
||||
template class UnitTestType <RandomTests>;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user