1
0
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:
2021-07-01 01:42:11 -04:00
commit 7ceef7e1b1
6 changed files with 253 additions and 0 deletions

28
Testing/test.cc Normal file
View 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; };
}