#include #include #include #include namespace list_to_matrix { typedef std::tuple NM; inline std::string NM_test_name( const ::testing::TestParamInfo& info) { return STR( std::get<0>(info.param)<<"x"<< std::get<1>(info.param)<<"_"); }; } class ListToMatrixTest : public ::testing::TestWithParam {}; TEST_P(ListToMatrixTest,matrix) { const int n = std::get<0>(GetParam()); const int m = std::get<1>(GetParam()); std::vector > vX(n,std::vector(m)); for(int i = 0;i >( std::vector{ list_to_matrix::NM{100,4}, list_to_matrix::NM{4,100}, list_to_matrix::NM{100,1}, list_to_matrix::NM{1,100}, }), list_to_matrix::NM_test_name );