mirror of https://github.com/catchorg/Catch2.git
Fixed a dangling else issue
This commit is contained in:
parent
88f7513007
commit
52e415805f
|
@ -22,10 +22,10 @@ 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 {
|
||||
} else {
|
||||
if( !includeSources )
|
||||
Catch::cout() << "All available test cases:\n";
|
||||
testSpec = TestSpecParser( ITagAliasRegistry::get() ).parse( "*" ).testSpec();
|
||||
|
|
Loading…
Reference in New Issue