negate() -> endExpression(), takes ResultDisposition
This commit is contained in:
1 parent
b2ef998825
commit
defca58566
5 files changed
+63
-60
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user