Turn RunTests into TestRunOrder enum class

This commit is contained in:
Martin Hořeňovský 2020-08-11 15:46:03 +02:00
parent 60cc4c293d
commit b0531404e4
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
6 changed files with 16 additions and 16 deletions

View file

@ -62,11 +62,11 @@ namespace Catch {
};
auto const setTestOrder = [&]( std::string const& order ) {
if( startsWith( "declared", order ) )
config.runOrder = RunTests::InDeclarationOrder;
config.runOrder = TestRunOrder::Declared;
else if( startsWith( "lexical", order ) )
config.runOrder = RunTests::InLexicographicalOrder;
config.runOrder = TestRunOrder::LexicographicallySorted;
else if( startsWith( "random", order ) )
config.runOrder = RunTests::InRandomOrder;
config.runOrder = TestRunOrder::Randomized;
else
return ParserResult::runtimeError( "Unrecognised ordering: '" + order + "'" );
return ParserResult::ok( ParseResultType::Matched );