summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-07-12 17:52:13 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-07-12 17:52:13 +0000
commitfa5511133a6bf784955042966162e8635ab5b930 (patch)
tree6eb56f405da708afc6ec7f4e1ae5b51a291a4340 /tests
parent52c656d77ce4e3ca95314aad3eaa7887c6c8796f (diff)
parent7c35c64a9d5ca913fb160df63c033000915639f8 (diff)
downloadandroid_packages_apps_Trebuchet-fa5511133a6bf784955042966162e8635ab5b930.tar.gz
android_packages_apps_Trebuchet-fa5511133a6bf784955042966162e8635ab5b930.tar.bz2
android_packages_apps_Trebuchet-fa5511133a6bf784955042966162e8635ab5b930.zip
Merge "Launcher3: Can't search out local app by Chinese"
am: 7c35c64a9d Change-Id: I1bf4a8c6909cd4bc8cf7d17a2a99529e6b6a3957
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 18570de5b..e9c2ebc74 100644
--- a/tests/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithmTest.java
+++ b/tests/src/com/android/launcher3/allapps/DefaultAppSearchAlgorithmTest.java
@@ -71,6 +71,10 @@ public class DefaultAppSearchAlgorithmTest extends InstrumentationTestCase {
// match lower case words
assertTrue(mAlgorithm.matches(getInfo("elephant"), "e"));
+ assertTrue(mAlgorithm.matches(getInfo("电子邮件"), "电"));
+ assertTrue(mAlgorithm.matches(getInfo("电子邮件"), "电子"));
+ assertFalse(mAlgorithm.matches(getInfo("电子邮件"), "子"));
+ assertFalse(mAlgorithm.matches(getInfo("电子邮件"), "邮件"));
}
private AppInfo getInfo(String title) {