Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-05-29 14:06:40 +0200
committerMartin Hořeňovský2021-05-29 14:06:40 +0200
commit9f091cbe9d9060f4241fb611486a1fbb8c552fc3 (patch)
tree04a6e86968bfbf81d8d1aba25645cb8c6a3fb6fb /src
parent4c1e896d4770711ae8de75fb02be3daa8aef4fbc (diff)
downloadcatch3-9f091cbe9d9060f4241fb611486a1fbb8c552fc3.tar.gz
Remove some code duplication from default test listing impl
Diffstat (limited to 'src')
-rw-r--r--src/catch2/reporters/catch_reporter_combined_tu.cpp5
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