Fixed a dangling else issue

This commit is contained in:
Cyberboss 2016-06-13 10:27:52 -04:00
parent 88f7513007
commit 52e415805f

View File

@ -22,12 +22,12 @@ namespace Catch {
inline std::size_t listTests( Config const& config, const bool includeSources ) {
TestSpec testSpec = config.testSpec();
if( config.testSpec().hasFilters() )
if( config.testSpec().hasFilters() ) {
if( !includeSources )
Catch::cout() << "Matching test cases:\n";
else {
Catch::cout() << "Matching test cases:\n";
} else {
if( !includeSources )
Catch::cout() << "All available test cases:\n";
Catch::cout() << "All available test cases:\n";
testSpec = TestSpecParser( ITagAliasRegistry::get() ).parse( "*" ).testSpec();
}