QA: Remove helper function
The InOutString function is not really useful, in most cases it can be done more simple with string operator+. This function is causing issues on MSVC (perhaps the template param names) anyway.
This commit is contained in:
parent
816f6db310
commit
a88ac393bb
|
@ -160,7 +160,7 @@ BOOST_AUTO_TEST_CASE( Results )
|
||||||
{
|
{
|
||||||
for( const auto& c : eval_cases_valid )
|
for( const auto& c : eval_cases_valid )
|
||||||
{
|
{
|
||||||
BOOST_TEST_CONTEXT( KI_TEST::InOutString( c.input, c.exp_result ) )
|
BOOST_TEST_CONTEXT( c.input + " -> " + c.exp_result )
|
||||||
{
|
{
|
||||||
// Clear for new string input
|
// Clear for new string input
|
||||||
m_eval.Clear();
|
m_eval.Clear();
|
||||||
|
|
|
@ -284,26 +284,6 @@ bool CollectionHasNoDuplicates( const T& aCollection )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a simple string "aIn -> aOut".
|
|
||||||
*
|
|
||||||
* Useful for BOOST_TEST_CONTEXT blocks as a brief description where a full
|
|
||||||
* case name would be a bit too much.
|
|
||||||
*
|
|
||||||
* @tparam IN the input type
|
|
||||||
* @tparam OUT the output type
|
|
||||||
* @param aIn the input
|
|
||||||
* @param aOut the output
|
|
||||||
* @return "aIn -> aOut"
|
|
||||||
*/
|
|
||||||
template<typename IN, typename OUT>
|
|
||||||
std::string InOutString( const IN& aIn, const OUT& aOut )
|
|
||||||
{
|
|
||||||
std::stringstream ss;
|
|
||||||
ss << aIn << " -> " << aOut;
|
|
||||||
return ss.str();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A test macro to check a wxASSERT is thrown.
|
* A test macro to check a wxASSERT is thrown.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue