mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-30 16:37:56 +00:00
More Single Evaluation work
This commit is contained in:
parent
b708789ee9
commit
e0e74774e2
6 changed files with 196 additions and 193 deletions
|
@ -458,12 +458,22 @@ namespace Catch
|
|||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
virtual void acceptExpression
|
||||
virtual ResultAction::Value acceptExpression
|
||||
(
|
||||
const MutableResultInfo& resultInfo
|
||||
)
|
||||
{
|
||||
m_currentResult = resultInfo;
|
||||
testEnded( m_currentResult );
|
||||
|
||||
bool ok = m_currentResult.ok();
|
||||
m_currentResult = MutableResultInfo();
|
||||
if( ok )
|
||||
return ResultAction::None;
|
||||
else if( shouldDebugBreak() )
|
||||
return ResultAction::DebugFailed;
|
||||
else
|
||||
return ResultAction::Failed;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue