forked from Alepha/Alepha
Starting out Alepha from scratch, as a C++17 effort.
This one is going to be prepped for GitHub private, from the get go. This initial commit has some evaluation helpers and the unit testing infrastructure. `TableTest` will come next.
This commit is contained in:
28
Testing/test.cc
Normal file
28
Testing/test.cc
Normal file
@ -0,0 +1,28 @@
|
||||
#include <Alepha/Testing/test.h>
|
||||
#include <Alepha/Utility/evaluation.h>
|
||||
|
||||
namespace
|
||||
{
|
||||
namespace UnitTest= Alepha::Testing::exports::testing;
|
||||
}
|
||||
|
||||
int
|
||||
main( const int argcnt, const char *const *const argvec )
|
||||
{
|
||||
return UnitTest::runAllTests( argcnt, argvec );
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
using namespace UnitTest::literals;
|
||||
using namespace Alepha::Utility::exports::evaluation;
|
||||
|
||||
auto registration= enroll <=[]
|
||||
{
|
||||
"enroll.basic.success"_test <=[]{};
|
||||
-"enroll.basic.failure"_test <=[]{ throw 0; };
|
||||
};
|
||||
|
||||
auto named1= "named.basic.success"_test <= []{};
|
||||
auto named2= -"named.basic.failure"_test <=[]{ return 1; };
|
||||
}
|
||||
Reference in New Issue
Block a user