mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-05 23:10:48 +00:00
refactored toLower
This commit is contained in:
parent
f4254b8622
commit
6ba2057abd
5 changed files with 13 additions and 12 deletions
|
@ -33,12 +33,10 @@ namespace Catch {
|
|||
|
||||
public:
|
||||
TestCaseFilter( const std::string& testSpec, IfFilterMatches::DoWhat matchBehaviour = IfFilterMatches::AutoDetectBehaviour )
|
||||
: m_stringToMatch( testSpec ),
|
||||
: m_stringToMatch( toLower( testSpec ) ),
|
||||
m_filterType( matchBehaviour ),
|
||||
m_wildcardPosition( NoWildcard )
|
||||
{
|
||||
toLower( m_stringToMatch );
|
||||
|
||||
if( m_filterType == IfFilterMatches::AutoDetectBehaviour ) {
|
||||
if( startsWith( m_stringToMatch, "exclude:" ) ) {
|
||||
m_stringToMatch = m_stringToMatch.substr( 8 );
|
||||
|
@ -79,7 +77,7 @@ namespace Catch {
|
|||
|
||||
bool isMatch( const TestCase& testCase ) const {
|
||||
std::string name = testCase.getTestCaseInfo().name;
|
||||
toLower( name );
|
||||
toLowerInPlace( name );
|
||||
|
||||
switch( m_wildcardPosition ) {
|
||||
case NoWildcard:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue