forked from Alepha/Alepha
Add an identity which works with TableTest
This commit is contained in:
@ -1,2 +1,3 @@
|
||||
unit_test( test )
|
||||
unit_test( test2 )
|
||||
unit_test( test3 )
|
||||
|
||||
26
Testing/TableTest.test/test3.cc
Normal file
26
Testing/TableTest.test/test3.cc
Normal file
@ -0,0 +1,26 @@
|
||||
static_assert( __cplusplus > 2020'99 );
|
||||
|
||||
#include <Alepha/Testing/TableTest.h>
|
||||
|
||||
|
||||
#include <Alepha/Testing/test.h>
|
||||
#include <Alepha/Utility/evaluation_helpers.h>
|
||||
|
||||
#include <Alepha/Algorithm/identity.h>
|
||||
|
||||
namespace
|
||||
{
|
||||
using namespace Alepha::Testing::exports;
|
||||
using namespace Alepha::Utility::exports::evaluation_helpers_m;
|
||||
using namespace Alepha::Algorithm::exports;
|
||||
|
||||
auto init= enroll <=[]
|
||||
{
|
||||
auto x= identity< int >( 42 );
|
||||
|
||||
"Simple Identity Test"_test <=TableTest< identity< std::string > >::Cases
|
||||
{
|
||||
{ "Tony 1", { "tony" }, "tony" },
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user