From 9f091cbe9d9060f4241fb611486a1fbb8c552fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 29 May 2021 14:06:40 +0200 Subject: [PATCH] Remove some code duplication from default test listing impl --- 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