mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-04 19:08:12 +00:00
WIldcards at both ends
This commit is contained in:
parent
56d5c42912
commit
4c97fc5619
6 changed files with 141 additions and 66 deletions
|
@ -15,23 +15,6 @@
|
|||
|
||||
namespace Catch {
|
||||
|
||||
struct pluralise {
|
||||
pluralise( std::size_t count, const std::string& label )
|
||||
: m_count( count ),
|
||||
m_label( label )
|
||||
{}
|
||||
|
||||
friend std::ostream& operator << ( std::ostream& os, const pluralise& pluraliser ) {
|
||||
os << pluraliser.m_count << " " << pluraliser.m_label;
|
||||
if( pluraliser.m_count != 1 )
|
||||
os << "s";
|
||||
return os;
|
||||
}
|
||||
|
||||
std::size_t m_count;
|
||||
std::string m_label;
|
||||
};
|
||||
|
||||
class BasicReporter : public SharedImpl<IReporter> {
|
||||
|
||||
struct SpanInfo {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue