catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Remove some code duplication from default test listing impl
- Commit
9f091cbe9d9060f4241fb611486a1fbb8c552fc3- Author
- Martin Hořeňovský ·
- Parents
4c1e896d4770
Changes
src/catch2/reporters/catch_reporter_combined_tu.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/catch2/reporters/catch_reporter_combined_tu.cpp b/src/catch2/reporters/catch_reporter_combined_tu.cpp index 03f8e4a3..a05b4998 100644 --- a/src/catch2/reporters/catch_reporter_combined_tu.cpp +++ b/src/catch2/reporters/catch_reporter_combined_tu.cpp @@ -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