Use template for UnitTest

This commit is contained in:
Vinnie Falco
2013-07-13 04:48:53 -07:00
parent 4a00e8feed
commit a1289eb502
13 changed files with 148 additions and 139 deletions

View File

@@ -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