From 28a64381b67d72fcc8b994343507ed9c5821df53 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Wed, 19 Oct 2016 07:53:43 +0100 Subject: Fixing text search where a word starting with lower case was not being matched Bug: 32249413 Change-Id: I0f5e24052759a734fe0df3bd3d0bf2e7ef7f2713 --- .../com/android/launcher3/allapps/DefaultAppSearchAlgorithmTest.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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) { -- cgit v1.2.3