Fixed reversed logic of NoAssertions warning check
(that explains the previous regressions)
This commit is contained in:
1 parent
7e34619f03
commit
f5642be7b4
5 files changed
+31
-31
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user