refactored toLower

This commit is contained in:
Phil Nash 2013-03-22 19:00:42 +00:00
parent f4254b8622
commit 6ba2057abd
5 changed files with 13 additions and 12 deletions

View file

@ -11,6 +11,7 @@
#include "catch_tags.hpp"
#include "catch_test_case_info.h"
#include "catch_interfaces_testcase.h"
#include "catch_common.h"
namespace Catch {
@ -76,7 +77,7 @@ namespace Catch {
}
bool TestCase::hasTag( const std::string& tag ) const {
return tags.find( tag ) != tags.end();
return tags.find( toLower( tag ) ) != tags.end();
}
bool TestCase::matchesTags( const std::string& tagPattern ) const {
TagExpression exp;