mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
Regenerated single include
This commit is contained in:
parent
e1cb8f25f2
commit
6f1543b1b1
@ -991,7 +991,14 @@ namespace Catch
|
|||||||
else if( m_op == "matches" )
|
else if( m_op == "matches" )
|
||||||
return m_lhs + " " + m_rhs;
|
return m_lhs + " " + m_rhs;
|
||||||
else if( m_op != "!" )
|
else if( m_op != "!" )
|
||||||
|
{
|
||||||
|
if( m_lhs.size() + m_rhs.size() < 30 )
|
||||||
return m_lhs + " " + m_op + " " + m_rhs;
|
return m_lhs + " " + m_op + " " + m_rhs;
|
||||||
|
else if( m_lhs.size() < 70 && m_rhs.size() < 70 )
|
||||||
|
return "\n\t" + m_lhs + "\n\t" + m_op + "\n\t" + m_rhs;
|
||||||
|
else
|
||||||
|
return "\n" + m_lhs + "\n" + m_op + "\n" + m_rhs + "\n\n";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return "{can't expand - use " + m_macroName + "_FALSE( " + m_expr.substr(1) + " ) instead of " + m_macroName + "( " + m_expr + " ) for better diagnostics}";
|
return "{can't expand - use " + m_macroName + "_FALSE( " + m_expr.substr(1) + " ) instead of " + m_macroName + "( " + m_expr + " ) for better diagnostics}";
|
||||||
}
|
}
|
||||||
@ -1386,15 +1393,25 @@ namespace Internal
|
|||||||
template<Operator Op, typename T>
|
template<Operator Op, typename T>
|
||||||
bool compare( long lhs, const T* rhs )
|
bool compare( long lhs, const T* rhs )
|
||||||
{
|
{
|
||||||
return Evaluator<T*, T*, Op>::evaluate( reinterpret_cast<T*>( NULL ), rhs );
|
return Evaluator<const T*, const T*, Op>::evaluate( reinterpret_cast<const T*>( lhs ), rhs );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template<Operator Op, typename T>
|
template<Operator Op, typename T>
|
||||||
bool compare( long lhs, T* rhs )
|
bool compare( long lhs, T* rhs )
|
||||||
{
|
{
|
||||||
return Evaluator<T*, T*, Op>::evaluate( reinterpret_cast<T*>( lhs ), rhs );
|
return Evaluator<T*, T*, Op>::evaluate( reinterpret_cast<T*>( lhs ), rhs );
|
||||||
|
}
|
||||||
|
|
||||||
|
template<Operator Op, typename T>
|
||||||
|
bool compare( const T* lhs, long rhs )
|
||||||
|
{
|
||||||
|
return Evaluator<const T*, const T*, Op>::evaluate( lhs, reinterpret_cast<const T*>( rhs ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
template<Operator Op, typename T>
|
||||||
|
bool compare( T* lhs, long rhs )
|
||||||
|
{
|
||||||
|
return Evaluator<T*, T*, Op>::evaluate( lhs, reinterpret_cast<T*>( rhs ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end of namespace Internal
|
} // end of namespace Internal
|
||||||
|
Loading…
Reference in New Issue
Block a user