negate() -> endExpression(), takes ResultDisposition

This commit is contained in:
Phil Nash committed 2012-11-10 18:43:23 +00:00
1 parent b2ef998825
commit defca58566
5 files changed
+63 -60

No files matched your search

+2 -2
View File
@@ -62,12 +62,12 @@ public:
return captureExpression<Internal::IsNotEqualTo>( rhs );
}
ExpressionResultBuilder& negate( bool shouldNegate ) {
ExpressionResultBuilder& endExpression( ResultDisposition::Flags resultDisposition ) {
bool value = m_lhs ? true : false;
return m_result
.setLhs( Catch::toString( value ) )
.setResultType( value )
.negate( shouldNegate );
.endExpression( resultDisposition );
}
// Only simple binary expressions are allowed on the LHS.