From 2d1739b42962f298c413210286eaf3f69e5a1eed Mon Sep 17 00:00:00 2001 From: twhittock Date: Sat, 27 May 2017 13:09:44 +0100 Subject: [PATCH] ExpressionLhs reconstruction based on value, not truthiness (#914) Types which are truthy, but have more information than the truthiness in their string conversion were showing up as 'true' or 'false' instead of showing the underlying type's string value. --- include/internal/catch_expression_lhs.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_expression_lhs.hpp b/include/internal/catch_expression_lhs.hpp index 106a6b0a..7133e09b 100644 --- a/include/internal/catch_expression_lhs.hpp +++ b/include/internal/catch_expression_lhs.hpp @@ -81,7 +81,7 @@ public: } virtual void reconstructExpression( std::string& dest ) const CATCH_OVERRIDE { - dest = Catch::toString( m_truthy ); + dest = Catch::toString( m_lhs ); } private: