mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 11:43:29 +01:00
Minor tidy up
This commit is contained in:
parent
444f4ddc60
commit
49d7ce40e8
@ -72,7 +72,7 @@ namespace Catch {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline size_t registerTestMethods() {
|
inline size_t registerTestMethods() {
|
||||||
size_t noTestMethods = 0;
|
size_t noTestMethods = 0;
|
||||||
int noClasses = objc_getClassList( NULL, 0 );
|
int noClasses = objc_getClassList( NULL, 0 );
|
||||||
|
@ -53,11 +53,11 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_stringToMatch[0] == '*' ) {
|
if( startsWith( m_stringToMatch, "*" ) ) {
|
||||||
m_stringToMatch = m_stringToMatch.substr( 1 );
|
m_stringToMatch = m_stringToMatch.substr( 1 );
|
||||||
m_wildcardPosition = (WildcardPosition)( m_wildcardPosition | WildcardAtStart );
|
m_wildcardPosition = (WildcardPosition)( m_wildcardPosition | WildcardAtStart );
|
||||||
}
|
}
|
||||||
if( m_stringToMatch[m_stringToMatch.size()-1] == '*' ) {
|
if( endsWith( m_stringToMatch, "*" ) ) {
|
||||||
m_stringToMatch = m_stringToMatch.substr( 0, m_stringToMatch.size()-1 );
|
m_stringToMatch = m_stringToMatch.substr( 0, m_stringToMatch.size()-1 );
|
||||||
m_wildcardPosition = (WildcardPosition)( m_wildcardPosition | WildcardAtEnd );
|
m_wildcardPosition = (WildcardPosition)( m_wildcardPosition | WildcardAtEnd );
|
||||||
}
|
}
|
||||||
|
@ -204,7 +204,7 @@ TEST_CASE( "./succeeding/conditions/int literals",
|
|||||||
|
|
||||||
// Disable warnings about sign conversions for the next two tests
|
// Disable warnings about sign conversions for the next two tests
|
||||||
// (as we are deliberately invoking them)
|
// (as we are deliberately invoking them)
|
||||||
// - Current only disabled for GCC/ LLVM. Should add VC++ too
|
// - Currently only disabled for GCC/ LLVM. Should add VC++ too
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wsign-compare"
|
#pragma GCC diagnostic ignored "-Wsign-compare"
|
||||||
|
Loading…
Reference in New Issue
Block a user