Fixed reversed logic of NoAssertions warning check

(that explains the previous regressions)
This commit is contained in:
Phil Nash 2015-11-03 17:05:08 +00:00
parent 7e34619f03
commit f5642be7b4
5 changed files with 31 additions and 31 deletions

View file

@ -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;