diff options
author | Florian Geyer <blueice@fobos.de> | 2012-07-22 16:58:15 +0400 |
---|---|---|
committer | Florian Geyer <blueice@fobos.de> | 2012-07-22 16:58:15 +0400 |
commit | 7bd080760e80ddd35495d9b70ec3220a782d4ed8 (patch) | |
tree | ab960399c40cc287e0d84dadf845cb7e2c8e5fff /tests | |
parent | 4f78c32461a332e44e49ff95d44b71e7026c2f6c (diff) |
Make wildcard matcher case insensitive.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/TestWildcardMatcher.cpp | 7 | ||||
-rw-r--r-- | tests/TestWildcardMatcher.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/TestWildcardMatcher.cpp b/tests/TestWildcardMatcher.cpp index e8febe9e4..197d798c3 100644 --- a/tests/TestWildcardMatcher.cpp +++ b/tests/TestWildcardMatcher.cpp @@ -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); diff --git a/tests/TestWildcardMatcher.h b/tests/TestWildcardMatcher.h index 2ee1c34ee..27d9a2b03 100644 --- a/tests/TestWildcardMatcher.h +++ b/tests/TestWildcardMatcher.h @@ -39,6 +39,7 @@ private Q_SLOTS: void testNoMatchWithMultipleWildcards(); void testMatchJustWildcard(); void testMatchFollowingWildcards(); + void testCaseSensitivity(); private: static const QString DefaultText; |