forked from catchorg/Catch2
Ignore leading/trailing whitespace in test/section specs
The leading/trailing whitespace is problematic because of e.g. `WHEN` macro having preceeding whitespace for alignment, and it is generally messy. Credits to Phil who did lot of the original work. Closes #1708
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Catch {
|
||||
{}
|
||||
|
||||
bool TestSpec::NamePattern::matches( TestCaseInfo const& testCase ) const {
|
||||
return m_wildcardPattern.matches( toLower( testCase.name ) );
|
||||
return m_wildcardPattern.matches( testCase.name );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user