mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-20 19:45:40 +02:00
string reporting is more consistent
This commit is contained in:
@@ -104,16 +104,17 @@ inline std::string toString
|
||||
const std::string& value
|
||||
)
|
||||
{
|
||||
return value;
|
||||
return "\"" + value + "\"";
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
inline std::string toString
|
||||
(
|
||||
const char* const value
|
||||
)
|
||||
{
|
||||
return value ? "'" + std::string( value ) + "'" : std::string( "{null string}" );
|
||||
}
|
||||
return value ? toString( std::string( value ) ) : std::string( "{null string}" );
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
inline std::string toString
|
||||
|
Reference in New Issue
Block a user