mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
Fixed a dangling else issue
This commit is contained in:
parent
88f7513007
commit
52e415805f
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user