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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal/catch_commandline.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-10-03 10:09:10 +0200
committerMartin Hořeňovský2021-10-03 10:37:30 +0200
commit928e198ef289c2c259ad0d6ee2b3741c3a2b185a (patch)
treeca967e39913a873207123686860c2195dca48fc7 /src/catch2/internal/catch_commandline.cpp
parent3e9c6fec222a5b307a712ba47dc4e930b37ad4e5 (diff)
downloadcatch3-928e198ef289c2c259ad0d6ee2b3741c3a2b185a.tar.gz
Demote some single character strings into plain chars
Diffstat (limited to 'src/catch2/internal/catch_commandline.cpp')
-rw-r--r--src/catch2/internal/catch_commandline.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/catch2/internal/catch_commandline.cpp b/src/catch2/internal/catch_commandline.cpp
index 0cb160e0..103e7344 100644
--- a/src/catch2/internal/catch_commandline.cpp
+++ b/src/catch2/internal/catch_commandline.cpp
@@ -34,14 +34,14 @@ namespace Catch {
}();
if (warningSet == WarnAbout::Nothing)
- return ParserResult::runtimeError( "Unrecognised warning: '" + warning + "'" );
+ return ParserResult::runtimeError( "Unrecognised warning: '" + warning + '\'' );
config.warnings = static_cast<WarnAbout::What>( config.warnings | warningSet );
return ParserResult::ok( ParseResultType::Matched );
};
auto const loadTestNamesFromFile = [&]( std::string const& filename ) {
std::ifstream f( filename.c_str() );
if( !f.is_open() )
- return ParserResult::runtimeError( "Unable to load input file: '" + filename + "'" );
+ return ParserResult::runtimeError( "Unable to load input file: '" + filename + '\'' );
std::string line;
while( std::getline( f, line ) ) {
@@ -67,7 +67,7 @@ namespace Catch {
else if( startsWith( "random", order ) )
config.runOrder = TestRunOrder::Randomized;
else
- return ParserResult::runtimeError( "Unrecognised ordering: '" + order + "'" );
+ return ParserResult::runtimeError( "Unrecognised ordering: '" + order + '\'' );
return ParserResult::ok( ParseResultType::Matched );
};
auto const setRngSeed = [&]( std::string const& seed ) {
@@ -112,7 +112,7 @@ namespace Catch {
else if( lcVerbosity == "high" )
config.verbosity = Verbosity::High;
else
- return ParserResult::runtimeError( "Unrecognised verbosity, '" + verbosity + "'" );
+ return ParserResult::runtimeError( "Unrecognised verbosity, '" + verbosity + '\'' );
return ParserResult::ok( ParseResultType::Matched );
};
auto const setReporter = [&]( std::string const& reporter ) {