mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
New unit_test framework:
* Header-only! * No external dependencies or other beast modules * Compilation options allow for: - Stand-alone application to run a single test suite - Stand-alone application to run a set of test suites - Global suite of tests inline with the host application - Disable test suite generation completely * Existing tests reworked to use the new classes
This commit is contained in:
@@ -23,12 +23,12 @@
|
||||
|
||||
#include "../empty_base_optimization.h"
|
||||
|
||||
#include "../../../modules/beast_core/beast_core.h" // for UnitTest
|
||||
#include "../../unit_test/suite.h"
|
||||
|
||||
namespace beast {
|
||||
|
||||
class empty_base_optimization_Tests
|
||||
: public UnitTest
|
||||
class empty_base_optimization_test
|
||||
: public unit_test::suite
|
||||
{
|
||||
public:
|
||||
template <class T>
|
||||
@@ -94,20 +94,14 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
runTest ()
|
||||
run ()
|
||||
{
|
||||
beginTestCase ("empty_base_optimization");
|
||||
expect (test_one());
|
||||
expect (test_two());
|
||||
pass ();
|
||||
}
|
||||
|
||||
empty_base_optimization_Tests()
|
||||
: UnitTest ("empty_base_optimization", "beast")
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
static empty_base_optimization_Tests empty_base_optimization_tests;
|
||||
BEAST_DEFINE_TESTSUITE(empty_base_optimization,utility,beast);
|
||||
|
||||
} // beast
|
||||
} // beast
|
||||
|
||||
Reference in New Issue
Block a user