Remove some code duplication from default test listing impl

This commit is contained in:
Martin Hořeňovský 2021-05-29 14:06:40 +02:00
parent 4c1e896d47
commit 9f091cbe9d
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

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