mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
see issue #617. m_exprComponents.op is never assigned the value !
, so don't check for it.
This commit is contained in:
parent
c984fc3ecd
commit
c87b13a8cd
@ -144,7 +144,7 @@ namespace Catch {
|
|||||||
return m_exprComponents.lhs.empty() ? m_assertionInfo.capturedExpression : m_exprComponents.op + m_exprComponents.lhs;
|
return m_exprComponents.lhs.empty() ? m_assertionInfo.capturedExpression : m_exprComponents.op + m_exprComponents.lhs;
|
||||||
else if( m_exprComponents.op == "matches" )
|
else if( m_exprComponents.op == "matches" )
|
||||||
return m_exprComponents.lhs + " " + m_exprComponents.rhs;
|
return m_exprComponents.lhs + " " + m_exprComponents.rhs;
|
||||||
else if( m_exprComponents.op != "!" ) {
|
else {
|
||||||
if( m_exprComponents.lhs.size() + m_exprComponents.rhs.size() < 40 &&
|
if( m_exprComponents.lhs.size() + m_exprComponents.rhs.size() < 40 &&
|
||||||
m_exprComponents.lhs.find("\n") == std::string::npos &&
|
m_exprComponents.lhs.find("\n") == std::string::npos &&
|
||||||
m_exprComponents.rhs.find("\n") == std::string::npos )
|
m_exprComponents.rhs.find("\n") == std::string::npos )
|
||||||
@ -152,8 +152,6 @@ namespace Catch {
|
|||||||
else
|
else
|
||||||
return m_exprComponents.lhs + "\n" + m_exprComponents.op + "\n" + m_exprComponents.rhs;
|
return m_exprComponents.lhs + "\n" + m_exprComponents.op + "\n" + m_exprComponents.rhs;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return "{can't expand - use " + m_assertionInfo.macroName + "_FALSE( " + m_assertionInfo.capturedExpression.substr(1) + " ) instead of " + m_assertionInfo.macroName + "( " + m_assertionInfo.capturedExpression + " ) for better diagnostics}";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end namespace Catch
|
} // end namespace Catch
|
||||||
|
Loading…
Reference in New Issue
Block a user