]> granicus.if.org Git - icu/commitdiff
ICU-8288 Looks like the code was fixed some time in the past, so just added test.
authorMark Davis <mark@macchiato.com>
Wed, 9 Sep 2015 12:45:06 +0000 (12:45 +0000)
committerMark Davis <mark@macchiato.com>
Wed, 9 Sep 2015 12:45:06 +0000 (12:45 +0000)
X-SVN-Rev: 37916

icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/LocaleMatcherTest.java

index 07ba984b5af217f6c583a527a272036637c8d6b5..2634a580f2abb3c33eef50fd9256a5d2dad50595 100644 (file)
@@ -595,4 +595,10 @@ public class LocaleMatcherTest extends TestFmwk {
             + (comparisonTime > 0 ? (delta * 100 / comparisonTime - 100) + "% longer" : ""));
         return delta;
     }
+    
+    public void Test8288() {
+        final LocaleMatcher matcher = newLocaleMatcher("it, en");
+        assertEquals("it", matcher.getBestMatch("und").toString());
+        assertEquals("en", matcher.getBestMatch("und, en").toString());
+    }
 }