diff options
| author | Martin Hořeňovský | 2021-10-03 10:09:10 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-10-03 10:37:30 +0200 |
| commit | 928e198ef289c2c259ad0d6ee2b3741c3a2b185a (patch) | |
| tree | ca967e39913a873207123686860c2195dca48fc7 /src/catch2/internal/catch_commandline.cpp | |
| parent | 3e9c6fec222a5b307a712ba47dc4e930b37ad4e5 (diff) | |
| download | catch3-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.cpp | 8 |
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 ) { |