mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-31 17:07:52 +00:00
Tag and test case name querying are now case insensitive
This commit is contained in:
parent
d78cfe1275
commit
17479c6e49
4 changed files with 17 additions and 5 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue