Factored out mention of "unprintable string" ("{?}")

This commit is contained in:
Phil Nash
2014-09-08 08:14:59 +01:00
parent 3e1d3c7271
commit ea33961b43
3 changed files with 18 additions and 9 deletions

View File

@@ -134,7 +134,7 @@
std::string matcherAsString = ::Catch::Matchers::matcher.toString(); \
__catchResult \
.setLhs( Catch::toString( arg ) ) \
.setRhs( matcherAsString == "{?}" ? #matcher : matcherAsString ) \
.setRhs( matcherAsString == Catch::Detail::unprintableString ? #matcher : matcherAsString ) \
.setOp( "matches" ) \
.setResultType( ::Catch::Matchers::matcher.match( arg ) ); \
__catchResult.captureExpression(); \