Fixed reversed logic of NoAssertions warning check
(that explains the previous regressions)
This commit is contained in:
parent
7e34619f03
commit
f5642be7b4
5 changed files with 31 additions and 31 deletions
|
@ -169,7 +169,7 @@ namespace Catch {
|
|||
bool testForMissingAssertions( Counts& assertions ) {
|
||||
if( assertions.total() != 0 )
|
||||
return false;
|
||||
if( m_config->warnAboutMissingAssertions() )
|
||||
if( !m_config->warnAboutMissingAssertions() )
|
||||
return false;
|
||||
if( m_trackerContext.currentTracker().hasChildren() )
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue