diff options
| author | Martin Hořeňovský | 2021-05-29 14:06:40 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-05-29 14:06:40 +0200 |
| commit | 9f091cbe9d9060f4241fb611486a1fbb8c552fc3 (patch) | |
| tree | 04a6e86968bfbf81d8d1aba25645cb8c6a3fb6fb /src/catch2 | |
| parent | 4c1e896d4770711ae8de75fb02be3daa8aef4fbc (diff) | |
| download | catch3-9f091cbe9d9060f4241fb611486a1fbb8c552fc3.tar.gz | |
Remove some code duplication from default test listing impl
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/reporters/catch_reporter_combined_tu.cpp | 5 |
1 files 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 |