forked from Alepha/Alepha
Cleanup some of the table test code.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user