Make wildcard matcher case insensitive.

This commit is contained in:
Florian Geyer
2012-07-22 14:58:15 +02:00
parent 4f78c32461
commit 7bd080760e
4 changed files with 15 additions and 3 deletions

View File

@@ -109,6 +109,13 @@ void TestWildcardMatcher::testMatchFollowingWildcards()
verifyMatch(pattern);
}
void TestWildcardMatcher::testCaseSensitivity()
{
initMatcher(DefaultText.toUpper());
QString pattern("some t**t");
verifyMatch(pattern);
}
void TestWildcardMatcher::initMatcher(QString text)
{
m_matcher = new WildcardMatcher(text);

View File

@@ -39,6 +39,7 @@ private Q_SLOTS:
void testNoMatchWithMultipleWildcards();
void testMatchJustWildcard();
void testMatchFollowingWildcards();
void testCaseSensitivity();
private:
static const QString DefaultText;