mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 03:43:28 +01:00
Fix for long headers
This commit is contained in:
parent
a7079a2dbe
commit
eac51f38bd
@ -67,8 +67,10 @@ namespace Catch {
|
||||
return doubleDashes;
|
||||
}
|
||||
void printHeader( std::string const& _type, std::string const& _name ) {
|
||||
std::size_t labelLen = _type.size() + _name.size() + 8;
|
||||
std::size_t dashLen = getDashes().size();
|
||||
stream << "-- " << _type << ": '" << _name << "' "
|
||||
<< getDashes().substr( 0, getDashes().size() - ( _type.size() + _name.size() + 9 ) )
|
||||
<< getDashes().substr( 0, labelLen < dashLen ? dashLen - labelLen : 0 )
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user