/*
This file is a part of libcds - Concurrent Data Structures library
- (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
+ (C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2017
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
s_arrKeys.reserve( s_nMapSize );
std::vector<std::string> dict = load_dictionary();
for ( size_t i = 0; i < s_nMapSize; ++i )
- s_arrKeys.push_back( std::move( dict.at(i) ));
+ s_arrKeys.push_back( std::move( dict.at(i)));
}
void Map_InsDel_string::TearDownTestCase()
size_t nDiffHash = 0;
hasher h;
for ( size_t i = 0; i < dict.size(); ++i ) {
- hash_type hash = h( dict.at( i ) );
- if ( mapHash.insert( std::make_pair( hash, i ) ).second ) {
+ hash_type hash = h( dict.at( i ));
+ if ( mapHash.insert( std::make_pair( hash, i )).second ) {
if ( ++nDiffHash >= nSize )
break;
- s_arrKeys.push_back( std::move( dict.at( i ) ));
+ s_arrKeys.push_back( std::move( dict.at( i )));
}
}
s_nMapSize = dict.size();
#endif
-
+#ifdef CDSTEST_GTEST_INSTANTIATE_TEST_CASE_P_HAS_4TH_ARG
+ static std::string get_test_parameter_name( testing::TestParamInfo<size_t> const& p )
+ {
+ return std::to_string( p.param );
+ }
+ INSTANTIATE_TEST_CASE_P( a, Map_InsDel_string_LF, ::testing::ValuesIn( Map_InsDel_string::get_load_factors()), get_test_parameter_name );
+#else
INSTANTIATE_TEST_CASE_P( a, Map_InsDel_string_LF, ::testing::ValuesIn( Map_InsDel_string::get_load_factors()));
+#endif
+
} // namespace map