mirror of
https://github.com/catchorg/Catch2.git
synced 2025-02-17 03:43:29 +01:00
Remove pointless branch from stringifying matcher assertions
This commit is contained in:
parent
0c0f73a48d
commit
8ee422d6bf
@ -26,13 +26,10 @@ namespace Catch {
|
|||||||
m_matcherString( matcherString )
|
m_matcherString( matcherString )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void streamReconstructedExpression( std::ostream &os ) const override {
|
void streamReconstructedExpression( std::ostream& os ) const override {
|
||||||
auto matcherAsString = m_matcher.toString();
|
os << Catch::Detail::stringify( m_arg )
|
||||||
os << Catch::Detail::stringify( m_arg ) << ' ';
|
<< ' '
|
||||||
if( matcherAsString == Detail::unprintableString )
|
<< m_matcher.toString();
|
||||||
os << m_matcherString;
|
|
||||||
else
|
|
||||||
os << matcherAsString;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user