1
0
forked from Alepha/Alepha

Add an identity which works with TableTest

This commit is contained in:
2024-06-12 16:58:21 -04:00
parent 26eb1b080e
commit 500ad866eb
3 changed files with 61 additions and 0 deletions

View File

@ -1,2 +1,3 @@
unit_test( test )
unit_test( test2 )
unit_test( test3 )

View 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" },
};
};
}