Fixed expansion of _FALSE binary expression

- see #1051
This commit is contained in:
Phil Nash
2017-10-13 19:44:20 +01:00
parent 9c07718b5f
commit da6c2a6914
5 changed files with 20 additions and 18 deletions

View File

@@ -66,7 +66,7 @@ namespace Catch {
std::string AssertionResult::getExpression() const {
if( isFalseTest( m_info.resultDisposition ) )
return '!' + capturedExpressionWithSecondArgument(m_info.capturedExpression, m_info.secondArg);
return "!(" + capturedExpressionWithSecondArgument(m_info.capturedExpression, m_info.secondArg) + ")";
else
return capturedExpressionWithSecondArgument(m_info.capturedExpression, m_info.secondArg);
}