Tag and test case name querying are now case insensitive

This commit is contained in:
Phil Nash 2013-03-12 18:47:53 +00:00
parent d78cfe1275
commit 17479c6e49
4 changed files with 17 additions and 5 deletions

View file

@ -80,6 +80,9 @@ namespace Catch {
inline bool contains( const std::string& s, const std::string& infix ) {
return s.find( infix ) != std::string::npos;
}
inline void toLower( std::string& s ) {
std::transform( s.begin(), s.end(), s.begin(), ::tolower );
}
struct pluralise {
pluralise( std::size_t count, const std::string& label )