summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-10-19 07:53:43 +0100
committerSunny Goyal <sunnygoyal@google.com>2016-10-19 07:54:22 +0100
commit28a64381b67d72fcc8b994343507ed9c5821df53 (patch)
treef4339400ae765f628c1d32abd4ffc9943f11591f /tests
parenta833b6d720b60f189572efd2a7af0ac6f5d20a52 (diff)
downloadandroid_packages_apps_Trebuchet-28a64381b67d72fcc8b994343507ed9c5821df53.tar.gz
android_packages_apps_Trebuchet-28a64381b67d72fcc8b994343507ed9c5821df53.tar.bz2
android_packages_apps_Trebuchet-28a64381b67d72fcc8b994343507ed9c5821df53.zip
Fixing text search where a word starting with lower case was
not being matched Bug: 32249413 Change-Id: I0f5e24052759a734fe0df3bd3d0bf2e7ef7f2713
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithmTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithmTest.java b/tests/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithmTest.java
index 4d0a7a9bd..18570de5b 100644
--- a/tests/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithmTest.java
+++ b/tests/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithmTest.java
@@ -67,6 +67,10 @@ public class DefaultAppSearchAlgorithmTest extends InstrumentationTestCase {
assertTrue(mAlgorithm.matches(getInfo("Q"), "q"));
assertTrue(mAlgorithm.matches(getInfo(" Q"), "q"));
+
+ // match lower case words
+ assertTrue(mAlgorithm.matches(getInfo("elephant"), "e"));
+
}
private AppInfo getInfo(String title) {