mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Remove some code duplication from default test listing impl
This commit is contained in:
parent
4c1e896d47
commit
9f091cbe9d
@ -205,10 +205,11 @@ namespace Catch {
|
||||
}
|
||||
|
||||
if (isFiltered) {
|
||||
out << pluralise(tests.size(), "matching test case") << "\n\n" << std::flush;
|
||||
out << pluralise(tests.size(), "matching test case");
|
||||
} else {
|
||||
out << pluralise(tests.size(), "test case") << "\n\n" << std::flush;
|
||||
out << pluralise(tests.size(), "test case");
|
||||
}
|
||||
out << "\n\n" << std::flush;
|
||||
}
|
||||
|
||||
} // namespace Catch
|
||||
|
Loading…
Reference in New Issue
Block a user