summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/catch/include/internal/catch_assertionresult.hpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/catch/include/internal/catch_assertionresult.hpp')
-rw-r--r--3rdparty/catch/include/internal/catch_assertionresult.hpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/3rdparty/catch/include/internal/catch_assertionresult.hpp b/3rdparty/catch/include/internal/catch_assertionresult.hpp
index bd59de9af4e..9b637028cdc 100644
--- a/3rdparty/catch/include/internal/catch_assertionresult.hpp
+++ b/3rdparty/catch/include/internal/catch_assertionresult.hpp
@@ -56,7 +56,7 @@ namespace Catch {
std::string AssertionResult::getExpression() const {
if( isFalseTest( m_info.resultDisposition ) )
- return "!" + m_info.capturedExpression;
+ return '!' + m_info.capturedExpression;
else
return m_info.capturedExpression;
}
@@ -72,7 +72,7 @@ namespace Catch {
}
std::string AssertionResult::getExpandedExpression() const {
- return m_resultData.reconstructedExpression;
+ return m_resultData.reconstructExpression();
}
std::string AssertionResult::getMessage() const {
@@ -86,6 +86,14 @@ namespace Catch {
return m_info.macroName;
}
+ void AssertionResult::discardDecomposedExpression() const {
+ m_resultData.decomposedExpression = CATCH_NULL;
+ }
+
+ void AssertionResult::expandDecomposedExpression() const {
+ m_resultData.reconstructExpression();
+ }
+
} // end namespace Catch
#endif // TWOBLUECUBES_CATCH_ASSERTIONRESULT_HPP_INCLUDED