From 85762533820a3f10253012a5f36dee9a557effed Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Fri, 10 Nov 2023 04:11:01 -0500 Subject: [PATCH] Cleanup some of the table test code. --- Testing/TableTest.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/Testing/TableTest.h b/Testing/TableTest.h index a9ebf19..7d714db 100644 --- a/Testing/TableTest.h +++ b/Testing/TableTest.h @@ -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