< prev index next >

test/jdk/java/util/Locale/LanguageSubtagRegistryTest.java

Print this page
@@ -21,11 +21,11 @@
   * questions.
   */
  
  /*
   * @test
-  * @bug 8040211 8191404 8203872 8222980 8225435 8241082 8242010 8247432
+  * @bug 8025703 8040211 8191404 8203872 8222980 8225435 8241082 8242010 8247432
   *      8258795 8267038 8287180 8302512 8304761 8306031 8308021
   * @summary Checks the IANA language subtag registry data update
   *          (LSR Revision: 2023-05-11) with Locale and Locale.LanguageRange
   *          class methods.
   * @run main LanguageSubtagRegistryTest

@@ -43,13 +43,13 @@
  
      static boolean err = false;
  
      private static final String ACCEPT_LANGUAGE =
          "Accept-Language: aam, adp, aeb, ajs, aog, apc, ajp, aue, bcg, bic, bpp, cey, cbr, cnp, cqu, crr, csp, csx, dif, dmw, dsz, ehs, ema,"
-         + " en-gb-oed, gti, iba, jks, kdz, kjh, kmb, koj, kru, ksp, kwq, kxe, kzk, lgs, lii, lmm, lsb, lsc, lsn, lsv, lsw, lvi, mtm,"
-         + " ngv, nns, ola, oyb, pat, phr, plu, pnd, pub, rib, rnb, rsn, scv, snz, sqx, suj, szy, taj, tdg, tjj, tjp, tpn, tvx,"
-         + " umi, uss, uth, ysm, zko, wkr;q=0.9, ar-hyw;q=0.8, yug;q=0.5, gfx;q=0.4";
+         + " en-gb-oed, gti, iba, ilw, jks, kdz, kjh, kmb, koj, kru, ksp, kwq, kxe, kzk, lgs, lii, lmm, lsb, lsc, lsn, lsv, lsw, lvi, meg, mtm,"
+         + " ngv, nns, ola, oyb, pat, pcr, phr, plu, pnd, pub, rib, rnb, rsn, scv, snz, sqx, suj, szy, taj, tdg, tjj, tjp, tpn, tvx,"
+         + " umi, uss, uth, xia, yos, ysm, zko, wkr;q=0.9, ar-hyw;q=0.8, yug;q=0.5, gfx;q=0.4";
      private static final List<LanguageRange> EXPECTED_RANGE_LIST = List.of(
              new LanguageRange("aam", 1.0),
              new LanguageRange("aas", 1.0),
              new LanguageRange("adp", 1.0),
              new LanguageRange("dz", 1.0),

@@ -100,10 +100,12 @@
              new LanguageRange("gti", 1.0),
              new LanguageRange("nyc", 1.0),
              new LanguageRange("iba", 1.0),
              new LanguageRange("snb", 1.0),
              new LanguageRange("blg", 1.0),
+             new LanguageRange("ilw", 1.0),
+             new LanguageRange("gal", 1.0),
              new LanguageRange("jks", 1.0),
              new LanguageRange("sgn-jks", 1.0),
              new LanguageRange("kdz", 1.0),
              new LanguageRange("ncp", 1.0),
              new LanguageRange("kjh", 1.0),

@@ -138,10 +140,12 @@
              new LanguageRange("lsv", 1.0),
              new LanguageRange("sgn-lsv", 1.0),
              new LanguageRange("lsw", 1.0),
              new LanguageRange("sgn-lsw", 1.0),
              new LanguageRange("lvi", 1.0),
+             new LanguageRange("meg", 1.0),
+             new LanguageRange("cir", 1.0),
              new LanguageRange("mtm", 1.0),
              new LanguageRange("ymt", 1.0),
              new LanguageRange("ngv", 1.0),
              new LanguageRange("nnx", 1.0),
              new LanguageRange("nns", 1.0),

@@ -152,10 +156,12 @@
              new LanguageRange("thx", 1.0),
              new LanguageRange("skk", 1.0),
              new LanguageRange("jeg", 1.0),
              new LanguageRange("pat", 1.0),
              new LanguageRange("kxr", 1.0),
+             new LanguageRange("pcr", 1.0),
+             new LanguageRange("adx", 1.0),
              new LanguageRange("phr", 1.0),
              new LanguageRange("pmu", 1.0),
              new LanguageRange("plu", 1.0),
              new LanguageRange("kgm", 1.0),
              new LanguageRange("pnd", 1.0),

@@ -186,10 +192,14 @@
              new LanguageRange("tvx", 1.0),
              new LanguageRange("umi", 1.0),
              new LanguageRange("szd", 1.0),
              new LanguageRange("uss", 1.0),
              new LanguageRange("uth", 1.0),
+             new LanguageRange("xia", 1.0),
+             new LanguageRange("acn", 1.0),
+             new LanguageRange("yos", 1.0),
+             new LanguageRange("zom", 1.0),
              new LanguageRange("ysm", 1.0),
              new LanguageRange("sgn-ysm", 1.0),
              new LanguageRange("zko", 1.0),
              new LanguageRange("xss", 1.0),
              new LanguageRange("wkr", 0.9),
< prev index next >