diff --git a/alib2std/test-src/extensions/TypeTraitsTest.cpp b/alib2std/test-src/extensions/TypeTraitsTest.cpp index cf086ef7a1dff961d331e693800cda97e532df10..9259fc2a79869ed10863a1a5c524ebc827aa9cef 100644 --- a/alib2std/test-src/extensions/TypeTraitsTest.cpp +++ b/alib2std/test-src/extensions/TypeTraitsTest.cpp @@ -23,6 +23,12 @@ TEST_CASE ( "TypeTraits", "[unit][std][bits]" ) { CHECK( ( ext::is_in< std::pair < int, int >, void, ext::pair < int, int > >::value ) == false ); } + SECTION ( "Index in pack" ) { + CHECK( ( ext::index_in< bool, double, ext::set<int>, float, char, int, std::string >::value ) == 6 ); + CHECK( ( ext::index_in< int, double, ext::set<int>, float, char, int, std::string >::value ) == 4 ); + CHECK( ( ext::index_in< double, double, ext::set<int>, float, char, int, std::string >::value ) == 0 ); + } + SECTION ( "Type Names" ) { CHECK ( ext::to_string < ns::Foo > ( ) == "ns::Foo" ); CHECK ( ext::to_string < ns::Bar > ( ) == "ns::Bar" );