]> granicus.if.org Git - icu/commitdiff
ICU-10843 Fixed a collation test failure. It was caused by the lack of LocaleDisplayN...
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 1 Jul 2014 15:41:35 +0000 (15:41 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 1 Jul 2014 15:41:35 +0000 (15:41 +0000)
X-SVN-Rev: 35971

icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/CollationServiceTest.java

index 9458329e0b746c6badf465be9af036f8f4c0c225..4b1b70a2050d9da38774c2e22925d69af0808a48 100644 (file)
@@ -77,7 +77,8 @@ public class CollationServiceTest extends TestFmwk {
             }
             try{
                 String name = Collator.getDisplayName(fu_FU);
-                if (!"fu (FU, FOO)".equals(name)) {
+                if (!"fu (FU, FOO)".equals(name)
+                        && !"fu_FU_FOO".equals(name) /* no LocaleDisplayNamesImpl */) {
                     errln("found " + name + " for fu_FU");
                 }
             }catch(MissingResourceException ex){
@@ -85,7 +86,8 @@ public class CollationServiceTest extends TestFmwk {
             }
             try{
                 String name = Collator.getDisplayName(fu_FU, fu_FU);
-                if (!"fu (FU, FOO)".equals(name)) {
+                if (!"fu (FU, FOO)".equals(name)
+                        && !"fu_FU_FOO".equals(name) /* no LocaleDisplayNamesImpl */) {
                     errln("found " + name + " for fu_FU");
                 }
             }catch(MissingResourceException ex){