summaryrefslogtreecommitdiff
path: root/tests/auto/utils/fuzzymatcher/tst_fuzzymatcher.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2017-10-30 21:48:36 +0200
committerOrgad Shaneh <orgads@gmail.com>2017-11-04 16:12:03 +0000
commit4300041d246805b207397ba6163c72db627c47d1 (patch)
tree743841d11e5807e2234419b5f88be358c9b49879 /tests/auto/utils/fuzzymatcher/tst_fuzzymatcher.cpp
parent357caf3b44ead9c7a88be560b55f4725c6c0ff01 (diff)
downloadqt-creator-4300041d246805b207397ba6163c72db627c47d1.tar.gz
FuzzyMatcher: Improve wildcard matching
Make it equivalent to current wildcard implementation, and replace the current one with FuzzyMatcher. Change-Id: If83a4a8dfc7c8930bd92b49972647a519886a831 Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'tests/auto/utils/fuzzymatcher/tst_fuzzymatcher.cpp')
-rw-r--r--tests/auto/utils/fuzzymatcher/tst_fuzzymatcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/utils/fuzzymatcher/tst_fuzzymatcher.cpp b/tests/auto/utils/fuzzymatcher/tst_fuzzymatcher.cpp
index 396fb4b35d..d2aaf16c68 100644
--- a/tests/auto/utils/fuzzymatcher/tst_fuzzymatcher.cpp
+++ b/tests/auto/utils/fuzzymatcher/tst_fuzzymatcher.cpp
@@ -141,9 +141,9 @@ void tst_FuzzyMatcher::highlighting_data()
QTest::newRow("numbers") << "4" << "TestJust4Fun"
<< MatchStart{8} << MatchLength{1};
QTest::newRow("wildcard-asterisk") << "Lo*Hu" << "VeryLongCamelHump"
- << MatchStart{4} << MatchLength{11};
+ << MatchStart{4, 13} << MatchLength{2, 2};
QTest::newRow("wildcard-question") << "Lo?g" << "VeryLongCamelHump"
- << MatchStart{4} << MatchLength{4};
+ << MatchStart{4, 7} << MatchLength{2, 1};
QTest::newRow("middle-no-hump") << "window" << "mainwindow.cpp"
<< MatchStart{4} << MatchLength{6};
}