1
0
forked from Alepha/Alepha

Cleanup some of the table test code.

This commit is contained in:
2023-11-10 04:11:01 -05:00
parent 2d45eab99c
commit 8576253382

View File

@ -269,22 +269,17 @@ namespace Alepha::Hydrogen::Testing ::detail:: table_test
using UniversalHandler= BasicUniversalHandler< return_type, outputMode >;
using TestDescription= std::tuple< std::string, args_type, UniversalHandler >;
struct TestDescription
{
std::string comment;
args_type args;
UniversalHandler handler;
};
std::vector< TestDescription > tests;
UniversalCases( std::initializer_list< TestDescription > initList )
: tests( initList )
{
for( const auto &desc: initList )
{
if constexpr( Aggregate< return_type > )
{
std::cerr << "Case: " << std::get< 0 >( desc );
const return_type &v= std::get< 2 >( desc );
std::cerr << " (" << v << ")" << std::endl;
tests.push_back( desc );
}
}
}
int