Skip to content

Commit

Permalink
ExpressionLhs reconstruction based on value, not truthiness (#914)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
twhittock authored and horenmar committed May 27, 2017
1 parent 1c59034 commit 2d1739b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/internal/catch_expression_lhs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class ExpressionLhs : public DecomposedExpression {
}

virtual void reconstructExpression( std::string& dest ) const CATCH_OVERRIDE {
dest = Catch::toString( m_truthy );
dest = Catch::toString( m_lhs );
}

private:
Expand Down

0 comments on commit 2d1739b

Please sign in to comment.