Fixed expansion of _FALSE binary expression

- see #1051
This commit is contained in:
Phil Nash
2017-10-13 19:45:19 +01:00
parent c2b7bd15c0
commit 05b1ca2884
5 changed files with 23 additions and 21 deletions

View File

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