mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-3827 test for bam vs bm
X-SVN-Rev: 16818
This commit is contained in:
parent
e3f6bd5606
commit
845cae8bda
1 changed files with 13 additions and 0 deletions
|
@ -985,6 +985,19 @@ public class ULocaleTest extends TestFmwk {
|
|||
}
|
||||
}
|
||||
|
||||
public void TestBamBm() {
|
||||
// "bam" shouldn't be there since the official code is 'bm'
|
||||
String[] isoLanguages = ULocale.getISOLanguages();
|
||||
for (int i = 0; i < isoLanguages.length; ++i) {
|
||||
if ("bam".equals(isoLanguages[i])) {
|
||||
errln("found bam");
|
||||
}
|
||||
if (i > 0 && isoLanguages[i].compareTo(isoLanguages[i-1]) <= 0) {
|
||||
errln("language list out of order: '" + isoLanguages[i] + " <= " + isoLanguages[i-1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void TestDisplayKeyword() {
|
||||
//prepare testing data
|
||||
initHashtable();
|
||||
|
|
Loading…
Add table
Reference in a new issue