]> granicus.if.org Git - icu/commitdiff
ICU-21066 Copy includelist of CLDR testData with tools/cldr/build.xml
authorHugo van der Merwe <17109322+hugovdm@users.noreply.github.com>
Thu, 27 Aug 2020 11:48:11 +0000 (13:48 +0200)
committerHugo van der Merwe <17109322+hugovdm@users.noreply.github.com>
Thu, 27 Aug 2020 23:12:12 +0000 (01:12 +0200)
icu4c/source/data/cldr-icu-readme.txt
icu4c/source/test/testdata/cldr/units/_readme.txt [new file with mode: 0644]
icu4c/source/test/testdata/cldr/units/unitPreferencesTest.txt [new file with mode: 0644]
icu4c/source/test/testdata/cldr/units/unitsTest.txt [new file with mode: 0644]
icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr/units/_readme.txt [new file with mode: 0644]
icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr/units/unitPreferencesTest.txt [new file with mode: 0644]
icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr/units/unitsTest.txt [new file with mode: 0644]
tools/cldr/README.md [new file with mode: 0644]
tools/cldr/build.xml

index 701ba981f542873cd98343161ed3b85c1297fc06..09ece4c7c0b10596a5344427ec760400b53b3fd4 100644 (file)
@@ -137,10 +137,11 @@ export TOOLS_ROOT=$HOME/icu-myfork/tools
 
 # 2. Build and install the CLDR jar
 
-cd $TOOLS_ROOT/cldr/lib
-./install-cldr-jars.sh "$CLDR_DIR"
+cd $TOOLS_ROOT/cldr
+ant install-cldr-libs
 
-See the README.txt file in this directory for more information.
+See the $TOOLS_ROOT/cldr/lib/README.txt file for more information on the CLDR
+jar and the install-cldr-jars.sh script.
 
 # 3. Configure ICU4C, build and test without new data first, to verify that
 # there are no pre-existing errors. Here <platform> is the runConfigureICU
@@ -185,6 +186,12 @@ ant proddata 2>&1 | tee /tmp/cldr-newData-proddataLog.txt
 cd $TOOLS_ROOT/cldr/cldr-to-icu
 ant -f build-icu-data.xml -DcldrDataDir="$CLDR_TMP_DIR/production" | tee /tmp/cldr-newData-builddataLog.txt
 
+# 4c. Update the CLDR testData files needed by ICU4C and ICU4J tests, ensuring
+# they're representative of the newest CLDR data.
+
+cd $TOOLS_ROOT/cldr
+ant update-cldr-testdata
+
 # 5. Check which data files have modifications, which have been added or removed
 # (if there are no changes, you may not need to proceed further). Make sure the
 # list seems reasonable.
diff --git a/icu4c/source/test/testdata/cldr/units/_readme.txt b/icu4c/source/test/testdata/cldr/units/_readme.txt
new file mode 100644 (file)
index 0000000..323c53f
--- /dev/null
@@ -0,0 +1,6 @@
+# Test data for units: conversions and preferences
+#  Copyright © 1991-2020 Unicode, Inc.
+#  For terms of use, see http://www.unicode.org/copyright.html
+#  Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
+#  CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
+# The format may vary between folders or files.
diff --git a/icu4c/source/test/testdata/cldr/units/unitPreferencesTest.txt b/icu4c/source/test/testdata/cldr/units/unitPreferencesTest.txt
new file mode 100644 (file)
index 0000000..16da6ab
--- /dev/null
@@ -0,0 +1,450 @@
+# Test data for unit preferences
+#  Copyright © 1991-2020 Unicode, Inc.
+#  For terms of use, see http://www.unicode.org/copyright.html
+#  Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
+#  CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
+#
+# Format:
+#   Quantity;   Usage;  Region; Input (r);  Input (d);  Input Unit; Output (r); Output (d); Output Unit
+#
+# Use: Convert the Input amount & unit according to the Usage and Region.
+#    The result should match the Output amount and unit.
+#    Both rational (r) and double64 (d) forms of the input and output amounts are supplied so that implementations
+#    have two options for testing based on the precision in their implementations. For example:
+#      3429 / 12500; 0.27432; meter;
+#    The Output amount and Unit are repeated for mixed units. In such a case, only the smallest unit will have
+#    both a rational and decimal amount; the others will have a single integer value, such as:
+#      length; person-height; CA; 3429 / 12500; 0.27432; meter; 2; foot; 54 / 5; 10.8; inch
+#    The input and output units are unit identifers; in particular, the output does not have further processing:
+#        • no localization
+#        • no adjustment for pluralization
+#        • no formatted with the skeleton
+#        • no suppression of zero values (for secondary -and- units such as pound in stone-and-pound)
+#
+# Generation: Set GENERATE_TESTS in TestUnits.java, and look at TestUnitPreferences results.
+
+area;   default;    001;    1100000;    1100000.0;  square-meter;   11 / 10;    1.1;    square-kilometer
+area;   default;    001;    1000000;    1000000.0;  square-meter;   1;  1.0;    square-kilometer
+area;   default;    001;    900000; 900000.0;   square-meter;   90; 90.0;   hectare
+area;   default;    001;    10000;  10000.0;    square-meter;   1;  1.0;    hectare
+area;   default;    001;    9000;   9000.0; square-meter;   9000;   9000.0; square-meter
+area;   default;    001;    1;  1.0;    square-meter;   1;  1.0;    square-meter
+area;   default;    001;    9 / 10; 0.9;    square-meter;   9000;   9000.0; square-centimeter
+area;   default;    001;    1 / 10000;  1.0E-4; square-meter;   1;  1.0;    square-centimeter
+area;   default;    001;    9 / 100000; 9.0E-5; square-meter;   9 / 10; 0.9;    square-centimeter
+
+area;   default;    GB; 222577103232 / 78125;   2848986.9213696;    square-meter;   11 / 10;    1.1;    square-mile
+area;   default;    GB; 40468564224 / 15625;    2589988.110336; square-meter;   1;  1.0;    square-mile
+area;   default;    GB; 182108539008 / 78125;   2330989.2993024;    square-meter;   576;    576.0;  acre
+area;   default;    GB; 316160658 / 78125;  4046.8564224;   square-meter;   1;  1.0;    acre
+area;   default;    GB; 1422722961 / 390625;    3642.17078016;  square-meter;   39204;  39204.0;    square-foot
+area;   default;    GB; 145161 / 1562500;   0.09290304; square-meter;   1;  1.0;    square-foot
+area;   default;    GB; 1306449 / 15625000; 0.083612736;    square-meter;   648 / 5;    129.6;  square-inch
+area;   default;    GB; 16129 / 25000000;   6.4516E-4;  square-meter;   1;  1.0;    square-inch
+area;   default;    GB; 145161 / 250000000; 5.80644E-4; square-meter;   9 / 10; 0.9;    square-inch
+
+area;   geograph;   001;    1100000;    1100000.0;  square-meter;   11 / 10;    1.1;    square-kilometer
+area;   geograph;   001;    1000000;    1000000.0;  square-meter;   1;  1.0;    square-kilometer
+area;   geograph;   001;    900000; 900000.0;   square-meter;   9 / 10; 0.9;    square-kilometer
+
+area;   geograph;   GB; 222577103232 / 78125;   2848986.9213696;    square-meter;   11 / 10;    1.1;    square-mile
+area;   geograph;   GB; 40468564224 / 15625;    2589988.110336; square-meter;   1;  1.0;    square-mile
+area;   geograph;   GB; 182108539008 / 78125;   2330989.2993024;    square-meter;   9 / 10; 0.9;    square-mile
+
+area;   land;   001;    11000;  11000.0;    square-meter;   11 / 10;    1.1;    hectare
+area;   land;   001;    10000;  10000.0;    square-meter;   1;  1.0;    hectare
+area;   land;   001;    9000;   9000.0; square-meter;   9 / 10; 0.9;    hectare
+
+area;   land;   GB; 1738883619 / 390625;    4451.54206464;  square-meter;   11 / 10;    1.1;    acre
+area;   land;   GB; 316160658 / 78125;  4046.8564224;   square-meter;   1;  1.0;    acre
+area;   land;   GB; 1422722961 / 390625;    3642.17078016;  square-meter;   9 / 10; 0.9;    acre
+
+concentration;  blood-glucose;  AG; 662435483600000000000000;   6.624354836E23; item-per-cubic-meter;   11 / 10;    1.1;    millimole-per-liter
+concentration;  blood-glucose;  AG; 602214076000000000000000;   6.02214076E23;  item-per-cubic-meter;   1;  1.0;    millimole-per-liter
+concentration;  blood-glucose;  AG; 541992668400000000000000;   5.419926684E23; item-per-cubic-meter;   9 / 10; 0.9;    millimole-per-liter
+
+concentration;  default;    001;    11 / 10;    1.1;    item-per-cubic-meter;   11 / 10;    1.1;    item-per-cubic-meter
+concentration;  default;    001;    1;  1.0;    item-per-cubic-meter;   1;  1.0;    item-per-cubic-meter
+concentration;  default;    001;    9 / 10; 0.9;    item-per-cubic-meter;   9 / 10; 0.9;    item-per-cubic-meter
+
+consumption;    default;    001;    11 / 1000000000;    1.1E-8; cubic-meter-per-meter;  11 / 10;    1.1;    liter-per-100-kilometer
+consumption;    default;    001;    1 / 100000000;  1.0E-8; cubic-meter-per-meter;  1;  1.0;    liter-per-100-kilometer
+consumption;    default;    001;    9 / 1000000000; 9.0E-9; cubic-meter-per-meter;  9 / 10; 0.9;    liter-per-100-kilometer
+
+consumption;    vehicle-fuel;   001;    11 / 1000000000;    1.1E-8; cubic-meter-per-meter;  11 / 10;    1.1;    liter-per-100-kilometer
+consumption;    vehicle-fuel;   001;    1 / 100000000;  1.0E-8; cubic-meter-per-meter;  1;  1.0;    liter-per-100-kilometer
+consumption;    vehicle-fuel;   001;    9 / 1000000000; 9.0E-9; cubic-meter-per-meter;  9 / 10; 0.9;    liter-per-100-kilometer
+
+consumption;    vehicle-fuel;   BR; 11 / 10000000;  1.1E-6; cubic-meter-per-meter;  11 / 10;    1.1;    liter-per-kilometer
+consumption;    vehicle-fuel;   BR; 1 / 1000000;    1.0E-6; cubic-meter-per-meter;  1;  1.0;    liter-per-kilometer
+consumption;    vehicle-fuel;   BR; 9 / 10000000;   9.0E-7; cubic-meter-per-meter;  9 / 10; 0.9;    liter-per-kilometer
+
+consumption-inverse;    default;    001;    110000000;  1.1E8;  meter-per-cubic-meter;  11 / 10;    1.1;    kilometer-per-centiliter
+consumption-inverse;    default;    001;    100000000;  1.0E8;  meter-per-cubic-meter;  1;  1.0;    kilometer-per-centiliter
+consumption-inverse;    default;    001;    90000000;   9.0E7;  meter-per-cubic-meter;  9 / 10; 0.9;    kilometer-per-centiliter
+
+consumption-inverse;    vehicle-fuel;   001;    110000000;  1.1E8;  meter-per-cubic-meter;  11 / 10;    1.1;    kilometer-per-centiliter
+consumption-inverse;    vehicle-fuel;   001;    100000000;  1.0E8;  meter-per-cubic-meter;  1;  1.0;    kilometer-per-centiliter
+consumption-inverse;    vehicle-fuel;   001;    90000000;   9.0E7;  meter-per-cubic-meter;  9 / 10; 0.9;    kilometer-per-centiliter
+
+consumption-inverse;    vehicle-fuel;   US; 52800000000 / 112903;   467658.0781732992;  meter-per-cubic-meter;  11 / 10;    1.1;    mile-per-gallon
+consumption-inverse;    vehicle-fuel;   US; 48000000000 / 112903;   425143.707430272;   meter-per-cubic-meter;  1;  1.0;    mile-per-gallon
+consumption-inverse;    vehicle-fuel;   US; 43200000000 / 112903;   382629.3366872448;  meter-per-cubic-meter;  9 / 10; 0.9;    mile-per-gallon
+
+consumption-inverse;    vehicle-fuel;   CA; 177027840000 / 454609;  389406.8089281118;  meter-per-cubic-meter;  11 / 10;    1.1;    mile-per-gallon-imperial
+consumption-inverse;    vehicle-fuel;   CA; 160934400000 / 454609;  354006.1899346471;  meter-per-cubic-meter;  1;  1.0;    mile-per-gallon-imperial
+consumption-inverse;    vehicle-fuel;   CA; 144840960000 / 454609;  318605.5709411824;  meter-per-cubic-meter;  9 / 10; 0.9;    mile-per-gallon-imperial
+
+duration;   default;    001;    95040;  95040.0;    second; 11 / 10;    1.1;    day
+duration;   default;    001;    86400;  86400.0;    second; 1;  1.0;    day
+duration;   default;    001;    77760;  77760.0;    second; 108 / 5;    21.6;   hour
+duration;   default;    001;    3600;   3600.0; second; 1;  1.0;    hour
+duration;   default;    001;    3240;   3240.0; second; 54; 54.0;   minute
+duration;   default;    001;    60; 60.0;   second; 1;  1.0;    minute
+duration;   default;    001;    54; 54.0;   second; 54; 54.0;   second
+duration;   default;    001;    1;  1.0;    second; 1;  1.0;    second
+duration;   default;    001;    9 / 10; 0.9;    second; 900;    900.0;  millisecond
+duration;   default;    001;    1 / 1000;   0.001;  second; 1;  1.0;    millisecond
+duration;   default;    001;    9 / 10000;  9.0E-4; second; 900;    900.0;  microsecond
+duration;   default;    001;    1 / 1000000;    1.0E-6; second; 1;  1.0;    microsecond
+duration;   default;    001;    9 / 10000000;   9.0E-7; second; 900;    900.0;  nanosecond
+duration;   default;    001;    1 / 1000000000; 1.0E-9; second; 1;  1.0;    nanosecond
+duration;   default;    001;    9 / 10000000000;    9.0E-10;    second; 9 / 10; 0.9;    nanosecond
+
+duration;   media;  001;    66; 66.0;   second; 1;  minute; 6;  6.0;    second
+duration;   media;  001;    60; 60.0;   second; 1;  minute; 0;  0.0;    second
+duration;   media;  001;    54; 54.0;   second; 54; 54.0;   second
+duration;   media;  001;    1;  1.0;    second; 1;  1.0;    second
+duration;   media;  001;    9 / 10; 0.9;    second; 9 / 10; 0.9;    second
+
+energy; default;    001;    3960000;    3960000.0;  kilogram-square-meter-per-square-second;    11 / 10;    1.1;    kilowatt-hour
+energy; default;    001;    3600000;    3600000.0;  kilogram-square-meter-per-square-second;    1;  1.0;    kilowatt-hour
+energy; default;    001;    3240000;    3240000.0;  kilogram-square-meter-per-square-second;    9 / 10; 0.9;    kilowatt-hour
+
+energy; food;   US; 23012 / 5;  4602.4; kilogram-square-meter-per-square-second;    11 / 10;    1.1;    foodcalorie
+energy; food;   US; 4184;   4184.0; kilogram-square-meter-per-square-second;    1;  1.0;    foodcalorie
+energy; food;   US; 18828 / 5;  3765.6; kilogram-square-meter-per-square-second;    9 / 10; 0.9;    foodcalorie
+
+energy; food;   001;    23012 / 5;  4602.4; kilogram-square-meter-per-square-second;    11 / 10;    1.1;    kilocalorie
+energy; food;   001;    4184;   4184.0; kilogram-square-meter-per-square-second;    1;  1.0;    kilocalorie
+energy; food;   001;    18828 / 5;  3765.6; kilogram-square-meter-per-square-second;    9 / 10; 0.9;    kilocalorie
+
+length; default;    001;    1100;   1100.0; meter;  11 / 10;    1.1;    kilometer
+length; default;    001;    1000;   1000.0; meter;  1;  1.0;    kilometer
+length; default;    001;    900;    900.0;  meter;  900;    900.0;  meter
+length; default;    001;    1;  1.0;    meter;  1;  1.0;    meter
+length; default;    001;    9 / 10; 0.9;    meter;  90; 90.0;   centimeter
+length; default;    001;    1 / 100;    0.01;   meter;  1;  1.0;    centimeter
+length; default;    001;    9 / 1000;   0.009;  meter;  9 / 10; 0.9;    centimeter
+
+length; default;    GB; 1106424 / 625;  1770.2784;  meter;  11 / 10;    1.1;    mile
+length; default;    GB; 201168 / 125;   1609.344;   meter;  1;  1.0;    mile
+length; default;    GB; 905256 / 625;   1448.4096;  meter;  4752;   4752.0; foot
+length; default;    GB; 381 / 1250; 0.3048; meter;  1;  1.0;    foot
+length; default;    GB; 3429 / 12500;   0.27432;    meter;  54 / 5; 10.8;   inch
+length; default;    GB; 127 / 5000; 0.0254; meter;  1;  1.0;    inch
+length; default;    GB; 1143 / 50000;   0.02286;    meter;  9 / 10; 0.9;    inch
+
+length; person; 001;    11 / 1000;  0.011;  meter;  11 / 10;    1.1;    centimeter
+length; person; 001;    1 / 100;    0.01;   meter;  1;  1.0;    centimeter
+length; person; 001;    9 / 1000;   0.009;  meter;  9 / 10; 0.9;    centimeter
+
+length; person; CA; 1397 / 50000;   0.02794;    meter;  11 / 10;    1.1;    inch
+length; person; CA; 127 / 5000; 0.0254; meter;  1;  1.0;    inch
+length; person; CA; 1143 / 50000;   0.02286;    meter;  9 / 10; 0.9;    inch
+
+length; person-height;  001;    11 / 1000;  0.011;  meter;  11 / 10;    1.1;    centimeter
+length; person-height;  001;    1 / 100;    0.01;   meter;  1;  1.0;    centimeter
+length; person-height;  001;    9 / 1000;   0.009;  meter;  9 / 10; 0.9;    centimeter
+
+length; person-height;  CA; 11811 / 12500;  0.94488;    meter;  3;  foot;   6 / 5;  1.2;    inch
+length; person-height;  CA; 1143 / 1250;    0.9144; meter;  3;  foot;   0;  0.0;    inch
+length; person-height;  CA; 11049 / 12500;  0.88392;    meter;  174 / 5;    34.8;   inch
+length; person-height;  CA; 127 / 5000; 0.0254; meter;  1;  1.0;    inch
+length; person-height;  CA; 1143 / 50000;   0.02286;    meter;  9 / 10; 0.9;    inch
+
+length; person-height;  AT; 11 / 10;    1.1;    meter;  1;  meter;  10; 10.0;   centimeter
+length; person-height;  AT; 1;  1.0;    meter;  1;  meter;  0;  0.0;    centimeter
+length; person-height;  AT; 9 / 10; 0.9;    meter;  0;  meter;  90; 90.0;   centimeter
+
+length; rainfall;   BR; 11 / 1000;  0.011;  meter;  11 / 10;    1.1;    centimeter
+length; rainfall;   BR; 1 / 100;    0.01;   meter;  1;  1.0;    centimeter
+length; rainfall;   BR; 9 / 1000;   0.009;  meter;  9 / 10; 0.9;    centimeter
+
+length; rainfall;   US; 1397 / 50000;   0.02794;    meter;  11 / 10;    1.1;    inch
+length; rainfall;   US; 127 / 5000; 0.0254; meter;  1;  1.0;    inch
+length; rainfall;   US; 1143 / 50000;   0.02286;    meter;  9 / 10; 0.9;    inch
+
+length; rainfall;   001;    11 / 10000; 0.0011; meter;  11 / 10;    1.1;    millimeter
+length; rainfall;   001;    1 / 1000;   0.001;  meter;  1;  1.0;    millimeter
+length; rainfall;   001;    9 / 10000;  9.0E-4; meter;  9 / 10; 0.9;    millimeter
+
+length; road;   001;    1000;   1000.0; meter;  1;  1.0;    kilometer
+length; road;   001;    900;    900.0;  meter;  9 / 10; 0.9;    kilometer
+length; road;   001;    800;    800.0;  meter;  800;    800.0;  meter
+length; road;   001;    300;    300.0;  meter;  300;    300.0;  meter
+length; road;   001;    2999 / 10;  299.9;  meter;  2999 / 10;  299.9;  meter
+length; road;   001;    1;  1.0;    meter;  1;  1.0;    meter
+length; road;   001;    9 / 10; 0.9;    meter;  9 / 10; 0.9;    meter
+
+length; road;   US; 603504 / 625;   965.6064;   meter;  3 / 5;  0.6;    mile
+length; road;   US; 100584 / 125;   804.672;    meter;  1 / 2;  0.5;    mile
+length; road;   US; 402336 / 625;   643.7376;   meter;  2112;   2112.0; foot
+length; road;   US; 762 / 25;   30.48;  meter;  100;    100.0;  foot
+length; road;   US; 380619 / 12500; 30.44952;   meter;  999 / 10;   99.9;   foot
+length; road;   US; 381 / 1250; 0.3048; meter;  1;  1.0;    foot
+length; road;   US; 3429 / 12500;   0.27432;    meter;  9 / 10; 0.9;    foot
+
+length; road;   GB; 603504 / 625;   965.6064;   meter;  3 / 5;  0.6;    mile
+length; road;   GB; 100584 / 125;   804.672;    meter;  1 / 2;  0.5;    mile
+length; road;   GB; 402336 / 625;   643.7376;   meter;  704;    704.0;  yard
+length; road;   GB; 2286 / 25;  91.44;  meter;  100;    100.0;  yard
+length; road;   GB; 1141857 / 12500;    91.34856;   meter;  999 / 10;   99.9;   yard
+length; road;   GB; 1143 / 1250;    0.9144; meter;  1;  1.0;    yard
+length; road;   GB; 10287 / 12500;  0.82296;    meter;  9 / 10; 0.9;    yard
+
+length; road;   SE; 11000;  11000.0;    meter;  11 / 10;    1.1;    mile-scandinavian
+length; road;   SE; 10000;  10000.0;    meter;  1;  1.0;    mile-scandinavian
+length; road;   SE; 9000;   9000.0; meter;  9;  9.0;    kilometer
+length; road;   SE; 1000;   1000.0; meter;  1;  1.0;    kilometer
+length; road;   SE; 900;    900.0;  meter;  900;    900.0;  meter
+length; road;   SE; 300;    300.0;  meter;  300;    300.0;  meter
+length; road;   SE; 2999 / 10;  299.9;  meter;  2999 / 10;  299.9;  meter
+length; road;   SE; 1;  1.0;    meter;  1;  1.0;    meter
+length; road;   SE; 9 / 10; 0.9;    meter;  9 / 10; 0.9;    meter
+
+length; snowfall;   001;    11 / 1000;  0.011;  meter;  11 / 10;    1.1;    centimeter
+length; snowfall;   001;    1 / 100;    0.01;   meter;  1;  1.0;    centimeter
+length; snowfall;   001;    9 / 1000;   0.009;  meter;  9 / 10; 0.9;    centimeter
+
+length; snowfall;   US; 1397 / 50000;   0.02794;    meter;  11 / 10;    1.1;    inch
+length; snowfall;   US; 127 / 5000; 0.0254; meter;  1;  1.0;    inch
+length; snowfall;   US; 1143 / 50000;   0.02286;    meter;  9 / 10; 0.9;    inch
+
+length; vehicle;    GB; 4191 / 12500;   0.33528;    meter;  1;  foot;   6 / 5;  1.2;    inch
+length; vehicle;    GB; 381 / 1250; 0.3048; meter;  1;  foot;   0;  0.0;    inch
+length; vehicle;    GB; 3429 / 12500;   0.27432;    meter;  0;  foot;   54 / 5; 10.8;   inch
+
+length; vehicle;    001;    11 / 10;    1.1;    meter;  11 / 10;    1.1;    meter
+length; vehicle;    001;    1;  1.0;    meter;  1;  1.0;    meter
+length; vehicle;    001;    9 / 10; 0.9;    meter;  9 / 10; 0.9;    meter
+
+length; vehicle;    MX; 11 / 10;    1.1;    meter;  1;  meter;  10; 10.0;   centimeter
+length; vehicle;    MX; 1;  1.0;    meter;  1;  meter;  0;  0.0;    centimeter
+length; vehicle;    MX; 9 / 10; 0.9;    meter;  0;  meter;  90; 90.0;   centimeter
+
+length; visiblty;   001;    200;    200.0;  meter;  1 / 5;  0.2;    kilometer
+length; visiblty;   001;    100;    100.0;  meter;  1 / 10; 0.1;    kilometer
+length; visiblty;   001;    1;  1.0;    meter;  1;  1.0;    meter
+length; visiblty;   001;    9 / 10; 0.9;    meter;  9 / 10; 0.9;    meter
+length; visiblty;   001;    0;  0.0;    meter;  0;  0.0;    meter
+
+length; visiblty;   DE; 11 / 10;    1.1;    meter;  11 / 10;    1.1;    meter
+length; visiblty;   DE; 1;  1.0;    meter;  1;  1.0;    meter
+length; visiblty;   DE; 9 / 10; 0.9;    meter;  9 / 10; 0.9;    meter
+
+length; visiblty;   GB; 1106424 / 625;  1770.2784;  meter;  11 / 10;    1.1;    mile
+length; visiblty;   GB; 201168 / 125;   1609.344;   meter;  1;  1.0;    mile
+length; visiblty;   GB; 905256 / 625;   1448.4096;  meter;  4752;   4752.0; foot
+length; visiblty;   GB; 381 / 1250; 0.3048; meter;  1;  1.0;    foot
+length; visiblty;   GB; 3429 / 12500;   0.27432;    meter;  9 / 10; 0.9;    foot
+
+mass;   default;    001;    1100;   1100.0; kilogram;   11 / 10;    1.1;    metric-ton
+mass;   default;    001;    1000;   1000.0; kilogram;   1;  1.0;    metric-ton
+mass;   default;    001;    900;    900.0;  kilogram;   900;    900.0;  kilogram
+mass;   default;    001;    1;  1.0;    kilogram;   1;  1.0;    kilogram
+mass;   default;    001;    9 / 10; 0.9;    kilogram;   900;    900.0;  gram
+mass;   default;    001;    1 / 1000;   0.001;  kilogram;   1;  1.0;    gram
+mass;   default;    001;    9 / 10000;  9.0E-4; kilogram;   900;    900.0;  milligram
+mass;   default;    001;    1 / 1000000;    1.0E-6; kilogram;   1;  1.0;    milligram
+mass;   default;    001;    9 / 10000000;   9.0E-7; kilogram;   900;    900.0;  microgram
+mass;   default;    001;    1 / 1000000000; 1.0E-9; kilogram;   1;  1.0;    microgram
+mass;   default;    001;    9 / 10000000000;    9.0E-10;    kilogram;   9 / 10; 0.9;    microgram
+
+mass;   default;    GB; 498951607 / 500000; 997.903214; kilogram;   11 / 10;    1.1;    ton
+mass;   default;    GB; 45359237 / 50000;   907.18474;  kilogram;   1;  1.0;    ton
+mass;   default;    GB; 408233133 / 500000; 816.466266; kilogram;   1800;   1800.0; pound
+mass;   default;    GB; 45359237 / 100000000;   0.45359237; kilogram;   1;  1.0;    pound
+mass;   default;    GB; 408233133 / 1000000000; 0.408233133;    kilogram;   72 / 5; 14.4;   ounce
+mass;   default;    GB; 45359237 / 1600000000;  0.028349523125; kilogram;   1;  1.0;    ounce
+mass;   default;    GB; 408233133 / 16000000000;    0.0255145708125;    kilogram;   9 / 10; 0.9;    ounce
+
+mass;   person; 001;    11 / 10;    1.1;    kilogram;   11 / 10;    1.1;    kilogram
+mass;   person; 001;    1;  1.0;    kilogram;   1;  1.0;    kilogram
+mass;   person; 001;    9 / 10; 0.9;    kilogram;   900;    900.0;  gram
+mass;   person; 001;    1 / 1000;   0.001;  kilogram;   1;  1.0;    gram
+mass;   person; 001;    9 / 10000;  9.0E-4; kilogram;   9 / 10; 0.9;    gram
+
+mass;   person; DZ; 11 / 10;    1.1;    kilogram;   1;  kilogram;   100;    100.0;  gram
+mass;   person; DZ; 1;  1.0;    kilogram;   1;  kilogram;   0;  0.0;    gram
+mass;   person; DZ; 9 / 10; 0.9;    kilogram;   0;  kilogram;   900;    900.0;  gram
+
+mass;   person; US; 498951607 / 1000000000; 0.498951607;    kilogram;   11 / 10;    1.1;    pound
+mass;   person; US; 45359237 / 100000000;   0.45359237; kilogram;   1;  1.0;    pound
+mass;   person; US; 408233133 / 1000000000; 0.408233133;    kilogram;   0;  pound;  72 / 5; 14.4;   ounce
+
+mass;   person; GB; 3492661249 / 500000000; 6.985322498;    kilogram;   1;  stone;  7 / 5;  1.4;    pound
+mass;   person; GB; 317514659 / 50000000;   6.35029318; kilogram;   1;  stone;  0;  0.0;    pound
+mass;   person; GB; 2857631931 / 500000000; 5.715263862;    kilogram;   12; pound;  48 / 5; 9.6;    ounce
+mass;   person; GB; 45359237 / 100000000;   0.45359237; kilogram;   1;  pound;  0;  0.0;    ounce
+mass;   person; GB; 408233133 / 1000000000; 0.408233133;    kilogram;   0;  pound;  72 / 5; 14.4;   ounce
+
+mass;   person; HK; 498951607 / 1000000000; 0.498951607;    kilogram;   1;  pound;  8 / 5;  1.6;    ounce
+mass;   person; HK; 45359237 / 100000000;   0.45359237; kilogram;   1;  pound;  0;  0.0;    ounce
+mass;   person; HK; 408233133 / 1000000000; 0.408233133;    kilogram;   0;  pound;  72 / 5; 14.4;   ounce
+
+mass-density;   blood-glucose;  001;    11 / 1000;  0.011;  kilogram-per-cubic-meter;   11 / 10;    1.1;    milligram-per-deciliter
+mass-density;   blood-glucose;  001;    1 / 100;    0.01;   kilogram-per-cubic-meter;   1;  1.0;    milligram-per-deciliter
+mass-density;   blood-glucose;  001;    9 / 1000;   0.009;  kilogram-per-cubic-meter;   9 / 10; 0.9;    milligram-per-deciliter
+
+mass-density;   default;    001;    11 / 10;    1.1;    kilogram-per-cubic-meter;   11 / 10;    1.1;    kilogram-per-cubic-meter
+mass-density;   default;    001;    1;  1.0;    kilogram-per-cubic-meter;   1;  1.0;    kilogram-per-cubic-meter
+mass-density;   default;    001;    9 / 10; 0.9;    kilogram-per-cubic-meter;   9 / 10; 0.9;    kilogram-per-cubic-meter
+
+power;  default;    001;    1100000000; 1.1E9;  kilogram-square-meter-per-cubic-second; 11 / 10;    1.1;    gigawatt
+power;  default;    001;    1000000000; 1.0E9;  kilogram-square-meter-per-cubic-second; 1;  1.0;    gigawatt
+power;  default;    001;    900000000;  9.0E8;  kilogram-square-meter-per-cubic-second; 900;    900.0;  megawatt
+power;  default;    001;    1000000;    1000000.0;  kilogram-square-meter-per-cubic-second; 1;  1.0;    megawatt
+power;  default;    001;    900000; 900000.0;   kilogram-square-meter-per-cubic-second; 900;    900.0;  kilowatt
+power;  default;    001;    1000;   1000.0; kilogram-square-meter-per-cubic-second; 1;  1.0;    kilowatt
+power;  default;    001;    900;    900.0;  kilogram-square-meter-per-cubic-second; 900;    900.0;  watt
+power;  default;    001;    1;  1.0;    kilogram-square-meter-per-cubic-second; 1;  1.0;    watt
+power;  default;    001;    9 / 10; 0.9;    kilogram-square-meter-per-cubic-second; 900;    900.0;  milliwatt
+power;  default;    001;    1 / 1000;   0.001;  kilogram-square-meter-per-cubic-second; 1;  1.0;    milliwatt
+power;  default;    001;    9 / 10000;  9.0E-4; kilogram-square-meter-per-cubic-second; 9 / 10; 0.9;    milliwatt
+
+power;  engine; 001;    1100;   1100.0; kilogram-square-meter-per-cubic-second; 11 / 10;    1.1;    kilowatt
+power;  engine; 001;    1000;   1000.0; kilogram-square-meter-per-cubic-second; 1;  1.0;    kilowatt
+power;  engine; 001;    900;    900.0;  kilogram-square-meter-per-cubic-second; 9 / 10; 0.9;    kilowatt
+
+power;  engine; GB; 410134929370248621 / 500000000000000;   820.2698587404972;  kilogram-square-meter-per-cubic-second; 11 / 10;    1.1;    horsepower
+power;  engine; GB; 37284993579113511 / 50000000000000; 745.6998715822702;  kilogram-square-meter-per-cubic-second; 1;  1.0;    horsepower
+power;  engine; GB; 335564942212021599 / 500000000000000;   671.1298844240432;  kilogram-square-meter-per-cubic-second; 9 / 10; 0.9;    horsepower
+
+pressure;   baromtrc;   001;    110;    110.0;  kilogram-per-meter-square-second;   11 / 10;    1.1;    hectopascal
+pressure;   baromtrc;   001;    100;    100.0;  kilogram-per-meter-square-second;   1;  1.0;    hectopascal
+pressure;   baromtrc;   001;    90; 90.0;   kilogram-per-meter-square-second;   9 / 10; 0.9;    hectopascal
+
+pressure;   baromtrc;   IN; 37250275043751 / 10000000000;   3725.0275043751;    kilogram-per-meter-square-second;   11 / 10;    1.1;    inch-ofhg
+pressure;   baromtrc;   IN; 3386388640341 / 1000000000; 3386.388640341; kilogram-per-meter-square-second;   1;  1.0;    inch-ofhg
+pressure;   baromtrc;   IN; 30477497763069 / 10000000000;   3047.7497763069;    kilogram-per-meter-square-second;   9 / 10; 0.9;    inch-ofhg
+
+pressure;   baromtrc;   BR; 110;    110.0;  kilogram-per-meter-square-second;   11 / 10;    1.1;    millibar
+pressure;   baromtrc;   BR; 100;    100.0;  kilogram-per-meter-square-second;   1;  1.0;    millibar
+pressure;   baromtrc;   BR; 90; 90.0;   kilogram-per-meter-square-second;   9 / 10; 0.9;    millibar
+
+pressure;   baromtrc;   MX; 293309252313 / 2000000000;  146.6546261565; kilogram-per-meter-square-second;   11 / 10;    1.1;    millimeter-ofhg
+pressure;   baromtrc;   MX; 26664477483 / 200000000;    133.322387415;  kilogram-per-meter-square-second;   1;  1.0;    millimeter-ofhg
+pressure;   baromtrc;   MX; 239980297347 / 2000000000;  119.9901486735; kilogram-per-meter-square-second;   9 / 10; 0.9;    millimeter-ofhg
+
+pressure;   default;    001;    1100000;    1100000.0;  kilogram-per-meter-square-second;   11 / 10;    1.1;    megapascal
+pressure;   default;    001;    1000000;    1000000.0;  kilogram-per-meter-square-second;   1;  1.0;    megapascal
+pressure;   default;    001;    900000; 900000.0;   kilogram-per-meter-square-second;   900000; 900000.0;   pascal
+pressure;   default;    001;    1;  1.0;    kilogram-per-meter-square-second;   1;  1.0;    pascal
+pressure;   default;    001;    9 / 10; 0.9;    kilogram-per-meter-square-second;   9 / 10; 0.9;    pascal
+
+pressure;   default;    GB; 97860875535731 / 12903200000;   7584.233022485197;  kilogram-per-meter-square-second;   11 / 10;    1.1;    pound-force-per-square-inch
+pressure;   default;    GB; 8896443230521 / 1290320000; 6894.757293168361;  kilogram-per-meter-square-second;   1;  1.0;    pound-force-per-square-inch
+pressure;   default;    GB; 80067989074689 / 12903200000;   6205.281563851525;  kilogram-per-meter-square-second;   9 / 10; 0.9;    pound-force-per-square-inch
+
+speed;  default;    001;    11 / 36;    0.3055555555555556; meter-per-second;   11 / 10;    1.1;    kilometer-per-hour
+speed;  default;    001;    5 / 18; 0.2777777777777778; meter-per-second;   1;  1.0;    kilometer-per-hour
+speed;  default;    001;    1 / 4;  0.25;   meter-per-second;   9 / 10; 0.9;    kilometer-per-hour
+
+speed;  default;    GB; 15367 / 31250;  0.491744;   meter-per-second;   11 / 10;    1.1;    mile-per-hour
+speed;  default;    GB; 1397 / 3125;    0.44704;    meter-per-second;   1;  1.0;    mile-per-hour
+speed;  default;    GB; 12573 / 31250;  0.402336;   meter-per-second;   9 / 10; 0.9;    mile-per-hour
+
+speed;  wind;   001;    11 / 36;    0.3055555555555556; meter-per-second;   11 / 10;    1.1;    kilometer-per-hour
+speed;  wind;   001;    5 / 18; 0.2777777777777778; meter-per-second;   1;  1.0;    kilometer-per-hour
+speed;  wind;   001;    1 / 4;  0.25;   meter-per-second;   9 / 10; 0.9;    kilometer-per-hour
+
+speed;  wind;   FI; 11 / 10;    1.1;    meter-per-second;   11 / 10;    1.1;    meter-per-second
+speed;  wind;   FI; 1;  1.0;    meter-per-second;   1;  1.0;    meter-per-second
+speed;  wind;   FI; 9 / 10; 0.9;    meter-per-second;   9 / 10; 0.9;    meter-per-second
+
+speed;  wind;   US; 15367 / 31250;  0.491744;   meter-per-second;   11 / 10;    1.1;    mile-per-hour
+speed;  wind;   US; 1397 / 3125;    0.44704;    meter-per-second;   1;  1.0;    mile-per-hour
+speed;  wind;   US; 12573 / 31250;  0.402336;   meter-per-second;   9 / 10; 0.9;    mile-per-hour
+
+temperature;    default;    001;    1097 / 4;   274.25; kelvin; 11 / 10;    1.1;    celsius
+temperature;    default;    001;    5483 / 20;  274.15; kelvin; 1;  1.0;    celsius
+temperature;    default;    001;    5481 / 20;  274.05; kelvin; 9 / 10; 0.9;    celsius
+
+temperature;    default;    US; 15359 / 60; 255.9833333333333;  kelvin; 11 / 10;    1.1;    fahrenheit
+temperature;    default;    US; 46067 / 180;    255.9277777777778;  kelvin; 1;  1.0;    fahrenheit
+temperature;    default;    US; 46057 / 180;    255.8722222222222;  kelvin; 9 / 10; 0.9;    fahrenheit
+
+temperature;    weather;    001;    1097 / 4;   274.25; kelvin; 11 / 10;    1.1;    celsius
+temperature;    weather;    001;    5483 / 20;  274.15; kelvin; 1;  1.0;    celsius
+temperature;    weather;    001;    5481 / 20;  274.05; kelvin; 9 / 10; 0.9;    celsius
+
+temperature;    weather;    BS; 15359 / 60; 255.9833333333333;  kelvin; 11 / 10;    1.1;    fahrenheit
+temperature;    weather;    BS; 46067 / 180;    255.9277777777778;  kelvin; 1;  1.0;    fahrenheit
+temperature;    weather;    BS; 46057 / 180;    255.8722222222222;  kelvin; 9 / 10; 0.9;    fahrenheit
+
+volume; default;    001;    11 / 10;    1.1;    cubic-meter;    11 / 10;    1.1;    cubic-meter
+volume; default;    001;    1;  1.0;    cubic-meter;    1;  1.0;    cubic-meter
+volume; default;    001;    9 / 10; 0.9;    cubic-meter;    900000; 900000.0;   cubic-centimeter
+volume; default;    001;    1 / 1000000;    1.0E-6; cubic-meter;    1;  1.0;    cubic-centimeter
+volume; default;    001;    9 / 10000000;   9.0E-7; cubic-meter;    9 / 10; 0.9;    cubic-centimeter
+
+volume; default;    GB; 608369751 / 19531250000;    0.0311485312512;    cubic-meter;    11 / 10;    1.1;    cubic-foot
+volume; default;    GB; 55306341 / 1953125000;  0.028316846592; cubic-meter;    1;  1.0;    cubic-foot
+volume; default;    GB; 497757069 / 19531250000;    0.0254851619328;    cubic-meter;    7776 / 5;   1555.2; cubic-inch
+volume; default;    GB; 2048383 / 125000000000; 1.6387064E-5;   cubic-meter;    1;  1.0;    cubic-inch
+volume; default;    GB; 18435447 / 1250000000000;   1.47483576E-5;  cubic-meter;    9 / 10; 0.9;    cubic-inch
+
+volume; fluid;  001;    11 / 10000; 0.0011; cubic-meter;    11 / 10;    1.1;    liter
+volume; fluid;  001;    1 / 1000;   0.001;  cubic-meter;    1;  1.0;    liter
+volume; fluid;  001;    9 / 10000;  9.0E-4; cubic-meter;    900;    900.0;  milliliter
+volume; fluid;  001;    1 / 1000000;    1.0E-6; cubic-meter;    1;  1.0;    milliliter
+volume; fluid;  001;    9 / 10000000;   9.0E-7; cubic-meter;    9 / 10; 0.9;    milliliter
+
+volume; fluid;  US; 5204941203 / 1250000000000; 0.0041639529624;    cubic-meter;    11 / 10;    1.1;    gallon
+volume; fluid;  US; 473176473 / 125000000000;   0.003785411784; cubic-meter;    1;  1.0;    gallon
+volume; fluid;  US; 4258588257 / 1250000000000; 0.0034068706056;    cubic-meter;    18 / 5; 3.6;    quart
+volume; fluid;  US; 473176473 / 500000000000;   9.46352946E-4;  cubic-meter;    1;  1.0;    quart
+volume; fluid;  US; 4258588257 / 5000000000000; 8.517176514E-4; cubic-meter;    9 / 5;  1.8;    pint
+volume; fluid;  US; 473176473 / 1000000000000;  4.73176473E-4;  cubic-meter;    1;  1.0;    pint
+volume; fluid;  US; 4258588257 / 10000000000000;    4.258588257E-4; cubic-meter;    9 / 5;  1.8;    cup
+volume; fluid;  US; 473176473 / 2000000000000;  2.365882365E-4; cubic-meter;    1;  1.0;    cup
+volume; fluid;  US; 4258588257 / 20000000000000;    2.1292941285E-4;    cubic-meter;    36 / 5; 7.2;    fluid-ounce
+volume; fluid;  US; 473176473 / 16000000000000; 2.95735295625E-5;   cubic-meter;    1;  1.0;    fluid-ounce
+volume; fluid;  US; 4258588257 / 160000000000000;   2.661617660625E-5;  cubic-meter;    9 / 5;  1.8;    tablespoon
+volume; fluid;  US; 473176473 / 32000000000000; 1.478676478125E-5;  cubic-meter;    1;  1.0;    tablespoon
+volume; fluid;  US; 4258588257 / 320000000000000;   1.3308088303125E-5; cubic-meter;    27 / 10;    2.7;    teaspoon
+volume; fluid;  US; 157725491 / 32000000000000; 4.92892159375E-6;   cubic-meter;    1;  1.0;    teaspoon
+volume; fluid;  US; 1419529419 / 320000000000000;   4.436029434375E-6;  cubic-meter;    9 / 10; 0.9;    teaspoon
+
+volume; fluid;  GB; 5000699 / 1000000000;   0.005000699;    cubic-meter;    11 / 10;    1.1;    gallon-imperial
+volume; fluid;  GB; 454609 / 100000000; 0.00454609; cubic-meter;    1;  1.0;    gallon-imperial
+volume; fluid;  GB; 4091481 / 1000000000;   0.004091481;    cubic-meter;    144;    144.0;  fluid-ounce-imperial
+volume; fluid;  GB; 454609 / 16000000000;   2.84130625E-5;  cubic-meter;    1;  1.0;    fluid-ounce-imperial
+volume; fluid;  GB; 4091481 / 160000000000; 2.557175625E-5; cubic-meter;    9 / 10; 0.9;    fluid-ounce-imperial
+
+volume; oil;    001;    109303765263 / 625000000000;    0.1748860244208;    cubic-meter;    11 / 10;    1.1;    barrel
+volume; oil;    001;    9936705933 / 62500000000;   0.158987294928; cubic-meter;    1;  1.0;    barrel
+volume; oil;    001;    89430353397 / 625000000000; 0.1430885654352;    cubic-meter;    9 / 10; 0.9;    barrel
+
+volume; vehicle;    US; 5204941203 / 1250000000000; 0.0041639529624;    cubic-meter;    11 / 10;    1.1;    gallon
+volume; vehicle;    US; 473176473 / 125000000000;   0.003785411784; cubic-meter;    1;  1.0;    gallon
+volume; vehicle;    US; 4258588257 / 1250000000000; 0.0034068706056;    cubic-meter;    9 / 10; 0.9;    gallon
+
+volume; vehicle;    001;    11 / 10000; 0.0011; cubic-meter;    11 / 10;    1.1;    liter
+volume; vehicle;    001;    1 / 1000;   0.001;  cubic-meter;    1;  1.0;    liter
+volume; vehicle;    001;    9 / 10000;  9.0E-4; cubic-meter;    9 / 10; 0.9;    liter
+
+year-duration;  default;    001;    11 / 10;    1.1;    year;   11 / 10;    1.1;    year
+year-duration;  default;    001;    1;  1.0;    year;   1;  1.0;    year
+year-duration;  default;    001;    9 / 10; 0.9;    year;   54 / 5; 10.8;   month
+year-duration;  default;    001;    1 / 12; 0.08333333333333333;    year;   1;  1.0;    month
+year-duration;  default;    001;    3 / 40; 0.075;  year;   9 / 10; 0.9;    month
+
+year-duration;  person-age; 001;    13 / 5; 2.6;    year;   13 / 5; 2.6;    year-person
+year-duration;  person-age; 001;    5 / 2;  2.5;    year;   5 / 2;  2.5;    year-person
+year-duration;  person-age; 001;    12 / 5; 2.4;    year;   2;  year-person;    24 / 5; 4.8;    month-person
+year-duration;  person-age; 001;    1;  1.0;    year;   1;  year-person;    0;  0.0;    month-person
+year-duration;  person-age; 001;    9 / 10; 0.9;    year;   54 / 5; 10.8;   month-person
+year-duration;  person-age; 001;    1 / 12; 0.08333333333333333;    year;   1;  1.0;    month-person
+year-duration;  person-age; 001;    3 / 40; 0.075;  year;   9 / 10; 0.9;    month-person
diff --git a/icu4c/source/test/testdata/cldr/units/unitsTest.txt b/icu4c/source/test/testdata/cldr/units/unitsTest.txt
new file mode 100644 (file)
index 0000000..82b7f3a
--- /dev/null
@@ -0,0 +1,194 @@
+# Test data for unit conversions
+#  Copyright © 1991-2020 Unicode, Inc.
+#  For terms of use, see http://www.unicode.org/copyright.html
+#  Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
+#  CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
+#
+# Format:
+#   Quantity    ;   x   ;   y   ;   conversion to y (rational)  ;   test: 1000 x ⟹ y
+#
+# Use: convert 1000 x units to the y unit; the result should match the final column,
+#   at the given precision. For example, when the last column is 159.1549,
+#   round to 4 decimal digits before comparing.
+# Note that certain conversions are approximate, such as degrees to radians
+#
+# Generation: Set GENERATE_TESTS in TestUnits.java, and look at TestParseUnit results.
+
+acceleration    ;   meter-per-square-second ;   meter-per-square-second ;   1 * x   ;   1,000.00
+acceleration    ;   g-force ;   meter-per-square-second ;   9.80665 * x ;   9806.65
+angle   ;   arc-second  ;   revolution  ;   0.0000625/81 * x    ;   7.716049E-4
+angle   ;   arc-minute  ;   revolution  ;   0.00125/27 * x  ;   0.0462963
+angle   ;   degree  ;   revolution  ;   0.025/9 * x ;   2.777778
+angle   ;   radian  ;   revolution  ;   65,501,488/411,557,987 * x  ;   159.1549
+angle   ;   revolution  ;   revolution  ;   1 * x   ;   1,000.00
+area    ;   square-centimeter   ;   square-meter    ;   0.0001 * x  ;   0.1
+area    ;   square-inch ;   square-meter    ;   0.00064516 * x  ;   0.64516
+area    ;   square-foot ;   square-meter    ;   0.09290304 * x  ;   92.90304
+area    ;   square-yard ;   square-meter    ;   0.83612736 * x  ;   836.1274
+area    ;   square-meter    ;   square-meter    ;   1 * x   ;   1,000.00
+area    ;   dunam   ;   square-meter    ;   1,000 * x   ;   1000000.0
+area    ;   acre    ;   square-meter    ;   4,046.8564224 * x   ;   4046856.0
+area    ;   hectare ;   square-meter    ;   10,000 * x  ;   1.0E7
+area    ;   square-kilometer    ;   square-meter    ;   1,000,000 * x   ;   1.0E9
+area    ;   square-mile ;   square-meter    ;   2,589,988.110336 * x    ;   2.589988E9
+concentration   ;   millimole-per-liter ;   item-per-cubic-meter    ;   602,214,076,000,000,000,000,000 * x ;   6.022141E26
+consumption ;   liter-per-100-kilometer ;   cubic-meter-per-meter   ;   0.00000001 * x  ;   1.0E-5
+consumption ;   liter-per-kilometer ;   cubic-meter-per-meter   ;   0.000001 * x    ;   0.001
+consumption-inverse ;   mile-per-gallon-imperial    ;   meter-per-cubic-meter   ;   160,934,400,000/454,609 * x ;   3.540062E8
+consumption-inverse ;   mile-per-gallon ;   meter-per-cubic-meter   ;   48,000,000,000/112,903 * x  ;   4.251437E8
+digital ;   bit ;   bit ;   1 * x   ;   1,000.00
+digital ;   byte    ;   bit ;   8 * x   ;   8000.0
+digital ;   kilobit ;   bit ;   1,000 * x   ;   1000000.0
+digital ;   kilobyte    ;   bit ;   8,000 * x   ;   8000000.0
+digital ;   megabit ;   bit ;   1,000,000 * x   ;   1.0E9
+digital ;   megabyte    ;   bit ;   8,000,000 * x   ;   8.0E9
+digital ;   gigabit ;   bit ;   1,000,000,000 * x   ;   1.0E12
+digital ;   gigabyte    ;   bit ;   8,000,000,000 * x   ;   8.0E12
+digital ;   terabit ;   bit ;   1,000,000,000,000 * x   ;   1.0E15
+digital ;   terabyte    ;   bit ;   8,000,000,000,000 * x   ;   8.0E15
+digital ;   petabyte    ;   bit ;   8,000,000,000,000,000 * x   ;   8.0E18
+duration    ;   nanosecond  ;   second  ;   0.000000001 * x ;   1.0E-6
+duration    ;   microsecond ;   second  ;   0.000001 * x    ;   0.001
+duration    ;   millisecond ;   second  ;   0.001 * x   ;   1.0
+duration    ;   second  ;   second  ;   1 * x   ;   1,000.00
+duration    ;   minute  ;   second  ;   60 * x  ;   60000.0
+duration    ;   hour    ;   second  ;   3,600 * x   ;   3600000.0
+duration    ;   day ;   second  ;   86,400 * x  ;   8.64E7
+duration    ;   day-person  ;   second  ;   86,400 * x  ;   8.64E7
+duration    ;   week    ;   second  ;   604,800 * x ;   6.048E8
+duration    ;   week-person ;   second  ;   604,800 * x ;   6.048E8
+electric-current    ;   milliampere ;   ampere  ;   0.001 * x   ;   1.0
+electric-current    ;   ampere  ;   ampere  ;   1 * x   ;   1,000.00
+electric-resistance ;   ohm ;   kilogram-square-meter-per-cubic-second-square-ampere    ;   1 * x   ;   1000.0
+energy  ;   electronvolt    ;   kilogram-square-meter-per-square-second ;   0.0000000000000000001602177 * x ;   1.602177E-16
+energy  ;   dalton  ;   kilogram-square-meter-per-square-second ;   0.00000000014924180856 * x  ;   1.492418E-7
+energy  ;   joule   ;   kilogram-square-meter-per-square-second ;   1 * x   ;   1000.0
+energy  ;   newton-meter    ;   kilogram-square-meter-per-square-second ;   1 * x   ;   1000.0
+energy  ;   pound-force-foot    ;   kilogram-square-meter-per-square-second ;   1.3558179483314004 * x  ;   1355.818
+energy  ;   calorie ;   kilogram-square-meter-per-square-second ;   4.184 * x   ;   4184.0
+energy  ;   kilojoule   ;   kilogram-square-meter-per-square-second ;   1,000 * x   ;   1000000.0
+energy  ;   british-thermal-unit    ;   kilogram-square-meter-per-square-second ;   9,489.1523804/9 * x ;   1054350.0
+energy  ;   foodcalorie ;   kilogram-square-meter-per-square-second ;   4,184 * x   ;   4184000.0
+energy  ;   kilocalorie ;   kilogram-square-meter-per-square-second ;   4,184 * x   ;   4184000.0
+energy  ;   kilowatt-hour   ;   kilogram-square-meter-second-per-cubic-second   ;   3,600,000 * x   ;   3.6E9
+energy  ;   therm-us    ;   kilogram-square-meter-per-square-second ;   105,480,400 * x ;   1.054804E11
+force   ;   newton  ;   kilogram-meter-per-square-second    ;   1 * x   ;   1000.0
+force   ;   pound-force ;   kilogram-meter-per-square-second    ;   4.4482216152605 * x ;   4448.222
+frequency   ;   hertz   ;   revolution-per-second   ;   1 * x   ;   1000.0
+frequency   ;   kilohertz   ;   revolution-per-second   ;   1,000 * x   ;   1000000.0
+frequency   ;   megahertz   ;   revolution-per-second   ;   1,000,000 * x   ;   1.0E9
+frequency   ;   gigahertz   ;   revolution-per-second   ;   1,000,000,000 * x   ;   1.0E12
+graphics    ;   dot ;   pixel   ;   1 * x   ;   1000.0
+graphics    ;   pixel   ;   pixel   ;   1 * x   ;   1,000.00
+graphics    ;   megapixel   ;   pixel   ;   1,000,000 * x   ;   1.0E9
+length  ;   picometer   ;   meter   ;   0.000000000001 * x  ;   1.0E-9
+length  ;   nanometer   ;   meter   ;   0.000000001 * x ;   1.0E-6
+length  ;   micrometer  ;   meter   ;   0.000001 * x    ;   0.001
+length  ;   point   ;   meter   ;   0.003175/9 * x  ;   0.3527778
+length  ;   millimeter  ;   meter   ;   0.001 * x   ;   1.0
+length  ;   centimeter  ;   meter   ;   0.01 * x    ;   10.0
+length  ;   inch    ;   meter   ;   0.0254 * x  ;   25.4
+length  ;   decimeter   ;   meter   ;   0.1 * x ;   100.0
+length  ;   foot    ;   meter   ;   0.3048 * x  ;   304.8
+length  ;   yard    ;   meter   ;   0.9144 * x  ;   914.4
+length  ;   meter   ;   meter   ;   1 * x   ;   1,000.00
+length  ;   fathom  ;   meter   ;   1.8288 * x  ;   1828.8
+length  ;   furlong ;   meter   ;   201.168 * x ;   201168.0
+length  ;   kilometer   ;   meter   ;   1,000 * x   ;   1000000.0
+length  ;   mile    ;   meter   ;   1,609.344 * x   ;   1609344.0
+length  ;   nautical-mile   ;   meter   ;   1,852 * x   ;   1852000.0
+length  ;   mile-scandinavian   ;   meter   ;   10,000 * x  ;   1.0E7
+length  ;   100-kilometer   ;   meter   ;   100,000 * x ;   1.0E8
+length  ;   earth-radius    ;   meter   ;   6,378,100 * x   ;   6.3781E9
+length  ;   solar-radius    ;   meter   ;   695,700,000 * x ;   6.957E11
+length  ;   astronomical-unit   ;   meter   ;   149,597,900,000 * x ;   1.495979E14
+length  ;   light-year  ;   meter   ;   9,460,730,000,000,000 * x   ;   9.46073E18
+length  ;   parsec  ;   meter   ;   30,856,780,000,000,000 * x  ;   3.085678E19
+luminous-flux   ;   lux ;   candela-square-meter-per-square-meter   ;   1 * x   ;   1000.0
+luminous-intensity  ;   candela ;   candela ;   1 * x   ;   1,000.00
+mass    ;   microgram   ;   kilogram    ;   0.000000001 * x ;   1.0E-6
+mass    ;   milligram   ;   kilogram    ;   0.000001 * x    ;   0.001
+mass    ;   carat   ;   kilogram    ;   0.0002 * x  ;   0.2
+mass    ;   gram    ;   kilogram    ;   0.001 * x   ;   1.0
+mass    ;   ounce   ;   kilogram    ;   0.028349523125 * x  ;   28.34952
+mass    ;   ounce-troy  ;   kilogram    ;   0.03110348 * x  ;   31.10348
+mass    ;   pound   ;   kilogram    ;   0.45359237 * x  ;   453.5924
+mass    ;   kilogram    ;   kilogram    ;   1 * x   ;   1,000.00
+mass    ;   stone   ;   kilogram    ;   6.35029318 * x  ;   6350.293
+mass    ;   ton ;   kilogram    ;   907.18474 * x   ;   907184.7
+mass    ;   metric-ton  ;   kilogram    ;   1,000 * x   ;   1000000.0
+mass    ;   earth-mass  ;   kilogram    ;   5,972,200,000,000,000,000,000,000 * x   ;   5.9722E27
+mass    ;   solar-mass  ;   kilogram    ;   1,988,470,000,000,000,000,000,000,000,000 * x   ;   1.98847E33
+mass-density    ;   milligram-per-deciliter ;   kilogram-per-cubic-meter    ;   0.01 * x    ;   10.0
+portion ;   permillion  ;   portion ;   0.000001 * x    ;   0.001
+portion ;   permyriad   ;   portion ;   0.0001 * x  ;   0.1
+portion ;   permille    ;   portion ;   0.001 * x   ;   1.0
+portion ;   percent ;   portion ;   0.01 * x    ;   10.0
+portion ;   karat   ;   portion ;   0.125/3 * x ;   41.66667
+portion ;   portion ;   portion ;   1 * x   ;   1,000.00
+power   ;   milliwatt   ;   kilogram-square-meter-per-cubic-second  ;   0.001 * x   ;   1.0
+power   ;   watt    ;   kilogram-square-meter-per-cubic-second  ;   1 * x   ;   1000.0
+power   ;   horsepower  ;   kilogram-square-meter-per-cubic-second  ;   745.69987158227022 * x  ;   745699.9
+power   ;   kilowatt    ;   kilogram-square-meter-per-cubic-second  ;   1,000 * x   ;   1000000.0
+power   ;   megawatt    ;   kilogram-square-meter-per-cubic-second  ;   1,000,000 * x   ;   1.0E9
+power   ;   gigawatt    ;   kilogram-square-meter-per-cubic-second  ;   1,000,000,000 * x   ;   1.0E12
+power   ;   solar-luminosity    ;   kilogram-square-meter-per-cubic-second  ;   382,800,000,000,000,000,000,000,000 * x ;   3.828E29
+pressure    ;   pascal  ;   kilogram-per-meter-square-second    ;   1 * x   ;   1000.0
+pressure    ;   hectopascal ;   kilogram-per-meter-square-second    ;   100 * x ;   100000.0
+pressure    ;   millibar    ;   kilogram-per-meter-square-second    ;   100 * x ;   100000.0
+pressure    ;   millimeter-ofhg ;   kilogram-meter-per-square-meter-square-second   ;   133.322387415 * x   ;   133322.4
+pressure    ;   kilopascal  ;   kilogram-per-meter-square-second    ;   1,000 * x   ;   1000000.0
+pressure    ;   inch-ofhg   ;   kilogram-meter-per-square-meter-square-second   ;   3,386.388640341 * x ;   3386389.0
+pressure    ;   pound-force-per-square-inch ;   kilogram-meter-per-square-meter-square-second   ;   111,205,540.3815125/16,129 * x  ;   6894757.0
+pressure    ;   bar ;   kilogram-per-meter-square-second    ;   100,000 * x ;   1.0E8
+pressure    ;   atmosphere  ;   kilogram-per-meter-square-second    ;   101,325 * x ;   1.01325E8
+pressure    ;   megapascal  ;   kilogram-per-meter-square-second    ;   1,000,000 * x   ;   1.0E9
+pressure-per-length ;   ofhg    ;   kilogram-per-square-meter-square-second ;   133,322.387415 * x  ;   1.333224E8
+resolution  ;   dot-per-inch    ;   pixel-per-meter ;   5,000/127 * x   ;   39370.08
+resolution  ;   pixel-per-inch  ;   pixel-per-meter ;   5,000/127 * x   ;   39370.08
+resolution  ;   dot-per-centimeter  ;   pixel-per-meter ;   100 * x ;   100000.0
+resolution  ;   pixel-per-centimeter    ;   pixel-per-meter ;   100 * x ;   100000.0
+speed   ;   kilometer-per-hour  ;   meter-per-second    ;   2.5/9 * x   ;   277.7778
+speed   ;   mile-per-hour   ;   meter-per-second    ;   0.44704 * x ;   447.04
+speed   ;   knot    ;   meter-per-second    ;   4.63/9 * x  ;   514.4444
+speed   ;   meter-per-second    ;   meter-per-second    ;   1 * x   ;   1,000.00
+substance-amount    ;   item    ;   item    ;   1 * x   ;   1,000.00
+substance-amount    ;   mole    ;   item    ;   602,214,076,000,000,000,000,000 * x ;   6.022141E26
+temperature ;   fahrenheit  ;   kelvin  ;   5/9 * x - 2,298.35/9    ;   810.9278
+temperature ;   kelvin  ;   kelvin  ;   1 * x   ;   1,000.00
+temperature ;   celsius ;   kelvin  ;   1 * x - 273.15  ;   1273.15
+typewidth   ;   em  ;   em  ;   1 * x   ;   1,000.00
+voltage ;   volt    ;   kilogram-square-meter-per-cubic-second-ampere   ;   1 * x   ;   1000.0
+volume  ;   cubic-centimeter    ;   cubic-meter ;   0.000001 * x    ;   0.001
+volume  ;   milliliter  ;   cubic-meter ;   0.000001 * x    ;   0.001
+volume  ;   teaspoon    ;   cubic-meter ;   0.00000492892159375 * x ;   0.004928922
+volume  ;   centiliter  ;   cubic-meter ;   0.00001 * x ;   0.01
+volume  ;   tablespoon  ;   cubic-meter ;   0.00001478676478125 * x ;   0.01478676
+volume  ;   cubic-inch  ;   cubic-meter ;   0.000016387064 * x  ;   0.01638706
+volume  ;   fluid-ounce-imperial    ;   cubic-meter ;   0.0000284130625 * x ;   0.02841306
+volume  ;   fluid-ounce ;   cubic-meter ;   0.0000295735295625 * x  ;   0.02957353
+volume  ;   deciliter   ;   cubic-meter ;   0.0001 * x  ;   0.1
+volume  ;   cup ;   cubic-meter ;   0.0002365882365 * x ;   0.2365882
+volume  ;   cup-metric  ;   cubic-meter ;   0.00025 * x ;   0.25
+volume  ;   pint    ;   cubic-meter ;   0.000473176473 * x  ;   0.4731765
+volume  ;   pint-metric ;   cubic-meter ;   0.0005 * x  ;   0.5
+volume  ;   quart   ;   cubic-meter ;   0.000946352946 * x  ;   0.9463529
+volume  ;   liter   ;   cubic-meter ;   0.001 * x   ;   1.0
+volume  ;   gallon  ;   cubic-meter ;   0.003785411784 * x  ;   3.785412
+volume  ;   gallon-imperial ;   cubic-meter ;   0.00454609 * x  ;   4.54609
+volume  ;   cubic-foot  ;   cubic-meter ;   0.028316846592 * x  ;   28.31685
+volume  ;   bushel  ;   cubic-meter ;   0.03523907016688 * x    ;   35.23907
+volume  ;   hectoliter  ;   cubic-meter ;   0.1 * x ;   100.0
+volume  ;   barrel  ;   cubic-meter ;   0.158987294928 * x  ;   158.9873
+volume  ;   cubic-yard  ;   cubic-meter ;   0.764554857984 * x  ;   764.5549
+volume  ;   cubic-meter ;   cubic-meter ;   1 * x   ;   1,000.00
+volume  ;   megaliter   ;   cubic-meter ;   1,000 * x   ;   1000000.0
+volume  ;   acre-foot   ;   cubic-meter ;   1,233.48183754752 * x   ;   1233482.0
+volume  ;   cubic-kilometer ;   cubic-meter ;   1,000,000,000 * x   ;   1.0E12
+volume  ;   cubic-mile  ;   cubic-meter ;   4,168,181,825.440579584 * x ;   4.168182E12
+year-duration   ;   month   ;   year    ;   0.25/3 * x  ;   83.33333
+year-duration   ;   month-person    ;   year    ;   0.25/3 * x  ;   83.33333
+year-duration   ;   year    ;   year    ;   1 * x   ;   1,000.00
+year-duration   ;   year-person ;   year    ;   1 * x   ;   1000.0
+year-duration   ;   decade  ;   year    ;   10 * x  ;   10000.0
+year-duration   ;   century ;   year    ;   100 * x ;   100000.0
diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr/units/_readme.txt b/icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr/units/_readme.txt
new file mode 100644 (file)
index 0000000..323c53f
--- /dev/null
@@ -0,0 +1,6 @@
+# Test data for units: conversions and preferences
+#  Copyright © 1991-2020 Unicode, Inc.
+#  For terms of use, see http://www.unicode.org/copyright.html
+#  Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
+#  CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
+# The format may vary between folders or files.
diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr/units/unitPreferencesTest.txt b/icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr/units/unitPreferencesTest.txt
new file mode 100644 (file)
index 0000000..16da6ab
--- /dev/null
@@ -0,0 +1,450 @@
+# Test data for unit preferences
+#  Copyright © 1991-2020 Unicode, Inc.
+#  For terms of use, see http://www.unicode.org/copyright.html
+#  Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
+#  CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
+#
+# Format:
+#   Quantity;   Usage;  Region; Input (r);  Input (d);  Input Unit; Output (r); Output (d); Output Unit
+#
+# Use: Convert the Input amount & unit according to the Usage and Region.
+#    The result should match the Output amount and unit.
+#    Both rational (r) and double64 (d) forms of the input and output amounts are supplied so that implementations
+#    have two options for testing based on the precision in their implementations. For example:
+#      3429 / 12500; 0.27432; meter;
+#    The Output amount and Unit are repeated for mixed units. In such a case, only the smallest unit will have
+#    both a rational and decimal amount; the others will have a single integer value, such as:
+#      length; person-height; CA; 3429 / 12500; 0.27432; meter; 2; foot; 54 / 5; 10.8; inch
+#    The input and output units are unit identifers; in particular, the output does not have further processing:
+#        • no localization
+#        • no adjustment for pluralization
+#        • no formatted with the skeleton
+#        • no suppression of zero values (for secondary -and- units such as pound in stone-and-pound)
+#
+# Generation: Set GENERATE_TESTS in TestUnits.java, and look at TestUnitPreferences results.
+
+area;   default;    001;    1100000;    1100000.0;  square-meter;   11 / 10;    1.1;    square-kilometer
+area;   default;    001;    1000000;    1000000.0;  square-meter;   1;  1.0;    square-kilometer
+area;   default;    001;    900000; 900000.0;   square-meter;   90; 90.0;   hectare
+area;   default;    001;    10000;  10000.0;    square-meter;   1;  1.0;    hectare
+area;   default;    001;    9000;   9000.0; square-meter;   9000;   9000.0; square-meter
+area;   default;    001;    1;  1.0;    square-meter;   1;  1.0;    square-meter
+area;   default;    001;    9 / 10; 0.9;    square-meter;   9000;   9000.0; square-centimeter
+area;   default;    001;    1 / 10000;  1.0E-4; square-meter;   1;  1.0;    square-centimeter
+area;   default;    001;    9 / 100000; 9.0E-5; square-meter;   9 / 10; 0.9;    square-centimeter
+
+area;   default;    GB; 222577103232 / 78125;   2848986.9213696;    square-meter;   11 / 10;    1.1;    square-mile
+area;   default;    GB; 40468564224 / 15625;    2589988.110336; square-meter;   1;  1.0;    square-mile
+area;   default;    GB; 182108539008 / 78125;   2330989.2993024;    square-meter;   576;    576.0;  acre
+area;   default;    GB; 316160658 / 78125;  4046.8564224;   square-meter;   1;  1.0;    acre
+area;   default;    GB; 1422722961 / 390625;    3642.17078016;  square-meter;   39204;  39204.0;    square-foot
+area;   default;    GB; 145161 / 1562500;   0.09290304; square-meter;   1;  1.0;    square-foot
+area;   default;    GB; 1306449 / 15625000; 0.083612736;    square-meter;   648 / 5;    129.6;  square-inch
+area;   default;    GB; 16129 / 25000000;   6.4516E-4;  square-meter;   1;  1.0;    square-inch
+area;   default;    GB; 145161 / 250000000; 5.80644E-4; square-meter;   9 / 10; 0.9;    square-inch
+
+area;   geograph;   001;    1100000;    1100000.0;  square-meter;   11 / 10;    1.1;    square-kilometer
+area;   geograph;   001;    1000000;    1000000.0;  square-meter;   1;  1.0;    square-kilometer
+area;   geograph;   001;    900000; 900000.0;   square-meter;   9 / 10; 0.9;    square-kilometer
+
+area;   geograph;   GB; 222577103232 / 78125;   2848986.9213696;    square-meter;   11 / 10;    1.1;    square-mile
+area;   geograph;   GB; 40468564224 / 15625;    2589988.110336; square-meter;   1;  1.0;    square-mile
+area;   geograph;   GB; 182108539008 / 78125;   2330989.2993024;    square-meter;   9 / 10; 0.9;    square-mile
+
+area;   land;   001;    11000;  11000.0;    square-meter;   11 / 10;    1.1;    hectare
+area;   land;   001;    10000;  10000.0;    square-meter;   1;  1.0;    hectare
+area;   land;   001;    9000;   9000.0; square-meter;   9 / 10; 0.9;    hectare
+
+area;   land;   GB; 1738883619 / 390625;    4451.54206464;  square-meter;   11 / 10;    1.1;    acre
+area;   land;   GB; 316160658 / 78125;  4046.8564224;   square-meter;   1;  1.0;    acre
+area;   land;   GB; 1422722961 / 390625;    3642.17078016;  square-meter;   9 / 10; 0.9;    acre
+
+concentration;  blood-glucose;  AG; 662435483600000000000000;   6.624354836E23; item-per-cubic-meter;   11 / 10;    1.1;    millimole-per-liter
+concentration;  blood-glucose;  AG; 602214076000000000000000;   6.02214076E23;  item-per-cubic-meter;   1;  1.0;    millimole-per-liter
+concentration;  blood-glucose;  AG; 541992668400000000000000;   5.419926684E23; item-per-cubic-meter;   9 / 10; 0.9;    millimole-per-liter
+
+concentration;  default;    001;    11 / 10;    1.1;    item-per-cubic-meter;   11 / 10;    1.1;    item-per-cubic-meter
+concentration;  default;    001;    1;  1.0;    item-per-cubic-meter;   1;  1.0;    item-per-cubic-meter
+concentration;  default;    001;    9 / 10; 0.9;    item-per-cubic-meter;   9 / 10; 0.9;    item-per-cubic-meter
+
+consumption;    default;    001;    11 / 1000000000;    1.1E-8; cubic-meter-per-meter;  11 / 10;    1.1;    liter-per-100-kilometer
+consumption;    default;    001;    1 / 100000000;  1.0E-8; cubic-meter-per-meter;  1;  1.0;    liter-per-100-kilometer
+consumption;    default;    001;    9 / 1000000000; 9.0E-9; cubic-meter-per-meter;  9 / 10; 0.9;    liter-per-100-kilometer
+
+consumption;    vehicle-fuel;   001;    11 / 1000000000;    1.1E-8; cubic-meter-per-meter;  11 / 10;    1.1;    liter-per-100-kilometer
+consumption;    vehicle-fuel;   001;    1 / 100000000;  1.0E-8; cubic-meter-per-meter;  1;  1.0;    liter-per-100-kilometer
+consumption;    vehicle-fuel;   001;    9 / 1000000000; 9.0E-9; cubic-meter-per-meter;  9 / 10; 0.9;    liter-per-100-kilometer
+
+consumption;    vehicle-fuel;   BR; 11 / 10000000;  1.1E-6; cubic-meter-per-meter;  11 / 10;    1.1;    liter-per-kilometer
+consumption;    vehicle-fuel;   BR; 1 / 1000000;    1.0E-6; cubic-meter-per-meter;  1;  1.0;    liter-per-kilometer
+consumption;    vehicle-fuel;   BR; 9 / 10000000;   9.0E-7; cubic-meter-per-meter;  9 / 10; 0.9;    liter-per-kilometer
+
+consumption-inverse;    default;    001;    110000000;  1.1E8;  meter-per-cubic-meter;  11 / 10;    1.1;    kilometer-per-centiliter
+consumption-inverse;    default;    001;    100000000;  1.0E8;  meter-per-cubic-meter;  1;  1.0;    kilometer-per-centiliter
+consumption-inverse;    default;    001;    90000000;   9.0E7;  meter-per-cubic-meter;  9 / 10; 0.9;    kilometer-per-centiliter
+
+consumption-inverse;    vehicle-fuel;   001;    110000000;  1.1E8;  meter-per-cubic-meter;  11 / 10;    1.1;    kilometer-per-centiliter
+consumption-inverse;    vehicle-fuel;   001;    100000000;  1.0E8;  meter-per-cubic-meter;  1;  1.0;    kilometer-per-centiliter
+consumption-inverse;    vehicle-fuel;   001;    90000000;   9.0E7;  meter-per-cubic-meter;  9 / 10; 0.9;    kilometer-per-centiliter
+
+consumption-inverse;    vehicle-fuel;   US; 52800000000 / 112903;   467658.0781732992;  meter-per-cubic-meter;  11 / 10;    1.1;    mile-per-gallon
+consumption-inverse;    vehicle-fuel;   US; 48000000000 / 112903;   425143.707430272;   meter-per-cubic-meter;  1;  1.0;    mile-per-gallon
+consumption-inverse;    vehicle-fuel;   US; 43200000000 / 112903;   382629.3366872448;  meter-per-cubic-meter;  9 / 10; 0.9;    mile-per-gallon
+
+consumption-inverse;    vehicle-fuel;   CA; 177027840000 / 454609;  389406.8089281118;  meter-per-cubic-meter;  11 / 10;    1.1;    mile-per-gallon-imperial
+consumption-inverse;    vehicle-fuel;   CA; 160934400000 / 454609;  354006.1899346471;  meter-per-cubic-meter;  1;  1.0;    mile-per-gallon-imperial
+consumption-inverse;    vehicle-fuel;   CA; 144840960000 / 454609;  318605.5709411824;  meter-per-cubic-meter;  9 / 10; 0.9;    mile-per-gallon-imperial
+
+duration;   default;    001;    95040;  95040.0;    second; 11 / 10;    1.1;    day
+duration;   default;    001;    86400;  86400.0;    second; 1;  1.0;    day
+duration;   default;    001;    77760;  77760.0;    second; 108 / 5;    21.6;   hour
+duration;   default;    001;    3600;   3600.0; second; 1;  1.0;    hour
+duration;   default;    001;    3240;   3240.0; second; 54; 54.0;   minute
+duration;   default;    001;    60; 60.0;   second; 1;  1.0;    minute
+duration;   default;    001;    54; 54.0;   second; 54; 54.0;   second
+duration;   default;    001;    1;  1.0;    second; 1;  1.0;    second
+duration;   default;    001;    9 / 10; 0.9;    second; 900;    900.0;  millisecond
+duration;   default;    001;    1 / 1000;   0.001;  second; 1;  1.0;    millisecond
+duration;   default;    001;    9 / 10000;  9.0E-4; second; 900;    900.0;  microsecond
+duration;   default;    001;    1 / 1000000;    1.0E-6; second; 1;  1.0;    microsecond
+duration;   default;    001;    9 / 10000000;   9.0E-7; second; 900;    900.0;  nanosecond
+duration;   default;    001;    1 / 1000000000; 1.0E-9; second; 1;  1.0;    nanosecond
+duration;   default;    001;    9 / 10000000000;    9.0E-10;    second; 9 / 10; 0.9;    nanosecond
+
+duration;   media;  001;    66; 66.0;   second; 1;  minute; 6;  6.0;    second
+duration;   media;  001;    60; 60.0;   second; 1;  minute; 0;  0.0;    second
+duration;   media;  001;    54; 54.0;   second; 54; 54.0;   second
+duration;   media;  001;    1;  1.0;    second; 1;  1.0;    second
+duration;   media;  001;    9 / 10; 0.9;    second; 9 / 10; 0.9;    second
+
+energy; default;    001;    3960000;    3960000.0;  kilogram-square-meter-per-square-second;    11 / 10;    1.1;    kilowatt-hour
+energy; default;    001;    3600000;    3600000.0;  kilogram-square-meter-per-square-second;    1;  1.0;    kilowatt-hour
+energy; default;    001;    3240000;    3240000.0;  kilogram-square-meter-per-square-second;    9 / 10; 0.9;    kilowatt-hour
+
+energy; food;   US; 23012 / 5;  4602.4; kilogram-square-meter-per-square-second;    11 / 10;    1.1;    foodcalorie
+energy; food;   US; 4184;   4184.0; kilogram-square-meter-per-square-second;    1;  1.0;    foodcalorie
+energy; food;   US; 18828 / 5;  3765.6; kilogram-square-meter-per-square-second;    9 / 10; 0.9;    foodcalorie
+
+energy; food;   001;    23012 / 5;  4602.4; kilogram-square-meter-per-square-second;    11 / 10;    1.1;    kilocalorie
+energy; food;   001;    4184;   4184.0; kilogram-square-meter-per-square-second;    1;  1.0;    kilocalorie
+energy; food;   001;    18828 / 5;  3765.6; kilogram-square-meter-per-square-second;    9 / 10; 0.9;    kilocalorie
+
+length; default;    001;    1100;   1100.0; meter;  11 / 10;    1.1;    kilometer
+length; default;    001;    1000;   1000.0; meter;  1;  1.0;    kilometer
+length; default;    001;    900;    900.0;  meter;  900;    900.0;  meter
+length; default;    001;    1;  1.0;    meter;  1;  1.0;    meter
+length; default;    001;    9 / 10; 0.9;    meter;  90; 90.0;   centimeter
+length; default;    001;    1 / 100;    0.01;   meter;  1;  1.0;    centimeter
+length; default;    001;    9 / 1000;   0.009;  meter;  9 / 10; 0.9;    centimeter
+
+length; default;    GB; 1106424 / 625;  1770.2784;  meter;  11 / 10;    1.1;    mile
+length; default;    GB; 201168 / 125;   1609.344;   meter;  1;  1.0;    mile
+length; default;    GB; 905256 / 625;   1448.4096;  meter;  4752;   4752.0; foot
+length; default;    GB; 381 / 1250; 0.3048; meter;  1;  1.0;    foot
+length; default;    GB; 3429 / 12500;   0.27432;    meter;  54 / 5; 10.8;   inch
+length; default;    GB; 127 / 5000; 0.0254; meter;  1;  1.0;    inch
+length; default;    GB; 1143 / 50000;   0.02286;    meter;  9 / 10; 0.9;    inch
+
+length; person; 001;    11 / 1000;  0.011;  meter;  11 / 10;    1.1;    centimeter
+length; person; 001;    1 / 100;    0.01;   meter;  1;  1.0;    centimeter
+length; person; 001;    9 / 1000;   0.009;  meter;  9 / 10; 0.9;    centimeter
+
+length; person; CA; 1397 / 50000;   0.02794;    meter;  11 / 10;    1.1;    inch
+length; person; CA; 127 / 5000; 0.0254; meter;  1;  1.0;    inch
+length; person; CA; 1143 / 50000;   0.02286;    meter;  9 / 10; 0.9;    inch
+
+length; person-height;  001;    11 / 1000;  0.011;  meter;  11 / 10;    1.1;    centimeter
+length; person-height;  001;    1 / 100;    0.01;   meter;  1;  1.0;    centimeter
+length; person-height;  001;    9 / 1000;   0.009;  meter;  9 / 10; 0.9;    centimeter
+
+length; person-height;  CA; 11811 / 12500;  0.94488;    meter;  3;  foot;   6 / 5;  1.2;    inch
+length; person-height;  CA; 1143 / 1250;    0.9144; meter;  3;  foot;   0;  0.0;    inch
+length; person-height;  CA; 11049 / 12500;  0.88392;    meter;  174 / 5;    34.8;   inch
+length; person-height;  CA; 127 / 5000; 0.0254; meter;  1;  1.0;    inch
+length; person-height;  CA; 1143 / 50000;   0.02286;    meter;  9 / 10; 0.9;    inch
+
+length; person-height;  AT; 11 / 10;    1.1;    meter;  1;  meter;  10; 10.0;   centimeter
+length; person-height;  AT; 1;  1.0;    meter;  1;  meter;  0;  0.0;    centimeter
+length; person-height;  AT; 9 / 10; 0.9;    meter;  0;  meter;  90; 90.0;   centimeter
+
+length; rainfall;   BR; 11 / 1000;  0.011;  meter;  11 / 10;    1.1;    centimeter
+length; rainfall;   BR; 1 / 100;    0.01;   meter;  1;  1.0;    centimeter
+length; rainfall;   BR; 9 / 1000;   0.009;  meter;  9 / 10; 0.9;    centimeter
+
+length; rainfall;   US; 1397 / 50000;   0.02794;    meter;  11 / 10;    1.1;    inch
+length; rainfall;   US; 127 / 5000; 0.0254; meter;  1;  1.0;    inch
+length; rainfall;   US; 1143 / 50000;   0.02286;    meter;  9 / 10; 0.9;    inch
+
+length; rainfall;   001;    11 / 10000; 0.0011; meter;  11 / 10;    1.1;    millimeter
+length; rainfall;   001;    1 / 1000;   0.001;  meter;  1;  1.0;    millimeter
+length; rainfall;   001;    9 / 10000;  9.0E-4; meter;  9 / 10; 0.9;    millimeter
+
+length; road;   001;    1000;   1000.0; meter;  1;  1.0;    kilometer
+length; road;   001;    900;    900.0;  meter;  9 / 10; 0.9;    kilometer
+length; road;   001;    800;    800.0;  meter;  800;    800.0;  meter
+length; road;   001;    300;    300.0;  meter;  300;    300.0;  meter
+length; road;   001;    2999 / 10;  299.9;  meter;  2999 / 10;  299.9;  meter
+length; road;   001;    1;  1.0;    meter;  1;  1.0;    meter
+length; road;   001;    9 / 10; 0.9;    meter;  9 / 10; 0.9;    meter
+
+length; road;   US; 603504 / 625;   965.6064;   meter;  3 / 5;  0.6;    mile
+length; road;   US; 100584 / 125;   804.672;    meter;  1 / 2;  0.5;    mile
+length; road;   US; 402336 / 625;   643.7376;   meter;  2112;   2112.0; foot
+length; road;   US; 762 / 25;   30.48;  meter;  100;    100.0;  foot
+length; road;   US; 380619 / 12500; 30.44952;   meter;  999 / 10;   99.9;   foot
+length; road;   US; 381 / 1250; 0.3048; meter;  1;  1.0;    foot
+length; road;   US; 3429 / 12500;   0.27432;    meter;  9 / 10; 0.9;    foot
+
+length; road;   GB; 603504 / 625;   965.6064;   meter;  3 / 5;  0.6;    mile
+length; road;   GB; 100584 / 125;   804.672;    meter;  1 / 2;  0.5;    mile
+length; road;   GB; 402336 / 625;   643.7376;   meter;  704;    704.0;  yard
+length; road;   GB; 2286 / 25;  91.44;  meter;  100;    100.0;  yard
+length; road;   GB; 1141857 / 12500;    91.34856;   meter;  999 / 10;   99.9;   yard
+length; road;   GB; 1143 / 1250;    0.9144; meter;  1;  1.0;    yard
+length; road;   GB; 10287 / 12500;  0.82296;    meter;  9 / 10; 0.9;    yard
+
+length; road;   SE; 11000;  11000.0;    meter;  11 / 10;    1.1;    mile-scandinavian
+length; road;   SE; 10000;  10000.0;    meter;  1;  1.0;    mile-scandinavian
+length; road;   SE; 9000;   9000.0; meter;  9;  9.0;    kilometer
+length; road;   SE; 1000;   1000.0; meter;  1;  1.0;    kilometer
+length; road;   SE; 900;    900.0;  meter;  900;    900.0;  meter
+length; road;   SE; 300;    300.0;  meter;  300;    300.0;  meter
+length; road;   SE; 2999 / 10;  299.9;  meter;  2999 / 10;  299.9;  meter
+length; road;   SE; 1;  1.0;    meter;  1;  1.0;    meter
+length; road;   SE; 9 / 10; 0.9;    meter;  9 / 10; 0.9;    meter
+
+length; snowfall;   001;    11 / 1000;  0.011;  meter;  11 / 10;    1.1;    centimeter
+length; snowfall;   001;    1 / 100;    0.01;   meter;  1;  1.0;    centimeter
+length; snowfall;   001;    9 / 1000;   0.009;  meter;  9 / 10; 0.9;    centimeter
+
+length; snowfall;   US; 1397 / 50000;   0.02794;    meter;  11 / 10;    1.1;    inch
+length; snowfall;   US; 127 / 5000; 0.0254; meter;  1;  1.0;    inch
+length; snowfall;   US; 1143 / 50000;   0.02286;    meter;  9 / 10; 0.9;    inch
+
+length; vehicle;    GB; 4191 / 12500;   0.33528;    meter;  1;  foot;   6 / 5;  1.2;    inch
+length; vehicle;    GB; 381 / 1250; 0.3048; meter;  1;  foot;   0;  0.0;    inch
+length; vehicle;    GB; 3429 / 12500;   0.27432;    meter;  0;  foot;   54 / 5; 10.8;   inch
+
+length; vehicle;    001;    11 / 10;    1.1;    meter;  11 / 10;    1.1;    meter
+length; vehicle;    001;    1;  1.0;    meter;  1;  1.0;    meter
+length; vehicle;    001;    9 / 10; 0.9;    meter;  9 / 10; 0.9;    meter
+
+length; vehicle;    MX; 11 / 10;    1.1;    meter;  1;  meter;  10; 10.0;   centimeter
+length; vehicle;    MX; 1;  1.0;    meter;  1;  meter;  0;  0.0;    centimeter
+length; vehicle;    MX; 9 / 10; 0.9;    meter;  0;  meter;  90; 90.0;   centimeter
+
+length; visiblty;   001;    200;    200.0;  meter;  1 / 5;  0.2;    kilometer
+length; visiblty;   001;    100;    100.0;  meter;  1 / 10; 0.1;    kilometer
+length; visiblty;   001;    1;  1.0;    meter;  1;  1.0;    meter
+length; visiblty;   001;    9 / 10; 0.9;    meter;  9 / 10; 0.9;    meter
+length; visiblty;   001;    0;  0.0;    meter;  0;  0.0;    meter
+
+length; visiblty;   DE; 11 / 10;    1.1;    meter;  11 / 10;    1.1;    meter
+length; visiblty;   DE; 1;  1.0;    meter;  1;  1.0;    meter
+length; visiblty;   DE; 9 / 10; 0.9;    meter;  9 / 10; 0.9;    meter
+
+length; visiblty;   GB; 1106424 / 625;  1770.2784;  meter;  11 / 10;    1.1;    mile
+length; visiblty;   GB; 201168 / 125;   1609.344;   meter;  1;  1.0;    mile
+length; visiblty;   GB; 905256 / 625;   1448.4096;  meter;  4752;   4752.0; foot
+length; visiblty;   GB; 381 / 1250; 0.3048; meter;  1;  1.0;    foot
+length; visiblty;   GB; 3429 / 12500;   0.27432;    meter;  9 / 10; 0.9;    foot
+
+mass;   default;    001;    1100;   1100.0; kilogram;   11 / 10;    1.1;    metric-ton
+mass;   default;    001;    1000;   1000.0; kilogram;   1;  1.0;    metric-ton
+mass;   default;    001;    900;    900.0;  kilogram;   900;    900.0;  kilogram
+mass;   default;    001;    1;  1.0;    kilogram;   1;  1.0;    kilogram
+mass;   default;    001;    9 / 10; 0.9;    kilogram;   900;    900.0;  gram
+mass;   default;    001;    1 / 1000;   0.001;  kilogram;   1;  1.0;    gram
+mass;   default;    001;    9 / 10000;  9.0E-4; kilogram;   900;    900.0;  milligram
+mass;   default;    001;    1 / 1000000;    1.0E-6; kilogram;   1;  1.0;    milligram
+mass;   default;    001;    9 / 10000000;   9.0E-7; kilogram;   900;    900.0;  microgram
+mass;   default;    001;    1 / 1000000000; 1.0E-9; kilogram;   1;  1.0;    microgram
+mass;   default;    001;    9 / 10000000000;    9.0E-10;    kilogram;   9 / 10; 0.9;    microgram
+
+mass;   default;    GB; 498951607 / 500000; 997.903214; kilogram;   11 / 10;    1.1;    ton
+mass;   default;    GB; 45359237 / 50000;   907.18474;  kilogram;   1;  1.0;    ton
+mass;   default;    GB; 408233133 / 500000; 816.466266; kilogram;   1800;   1800.0; pound
+mass;   default;    GB; 45359237 / 100000000;   0.45359237; kilogram;   1;  1.0;    pound
+mass;   default;    GB; 408233133 / 1000000000; 0.408233133;    kilogram;   72 / 5; 14.4;   ounce
+mass;   default;    GB; 45359237 / 1600000000;  0.028349523125; kilogram;   1;  1.0;    ounce
+mass;   default;    GB; 408233133 / 16000000000;    0.0255145708125;    kilogram;   9 / 10; 0.9;    ounce
+
+mass;   person; 001;    11 / 10;    1.1;    kilogram;   11 / 10;    1.1;    kilogram
+mass;   person; 001;    1;  1.0;    kilogram;   1;  1.0;    kilogram
+mass;   person; 001;    9 / 10; 0.9;    kilogram;   900;    900.0;  gram
+mass;   person; 001;    1 / 1000;   0.001;  kilogram;   1;  1.0;    gram
+mass;   person; 001;    9 / 10000;  9.0E-4; kilogram;   9 / 10; 0.9;    gram
+
+mass;   person; DZ; 11 / 10;    1.1;    kilogram;   1;  kilogram;   100;    100.0;  gram
+mass;   person; DZ; 1;  1.0;    kilogram;   1;  kilogram;   0;  0.0;    gram
+mass;   person; DZ; 9 / 10; 0.9;    kilogram;   0;  kilogram;   900;    900.0;  gram
+
+mass;   person; US; 498951607 / 1000000000; 0.498951607;    kilogram;   11 / 10;    1.1;    pound
+mass;   person; US; 45359237 / 100000000;   0.45359237; kilogram;   1;  1.0;    pound
+mass;   person; US; 408233133 / 1000000000; 0.408233133;    kilogram;   0;  pound;  72 / 5; 14.4;   ounce
+
+mass;   person; GB; 3492661249 / 500000000; 6.985322498;    kilogram;   1;  stone;  7 / 5;  1.4;    pound
+mass;   person; GB; 317514659 / 50000000;   6.35029318; kilogram;   1;  stone;  0;  0.0;    pound
+mass;   person; GB; 2857631931 / 500000000; 5.715263862;    kilogram;   12; pound;  48 / 5; 9.6;    ounce
+mass;   person; GB; 45359237 / 100000000;   0.45359237; kilogram;   1;  pound;  0;  0.0;    ounce
+mass;   person; GB; 408233133 / 1000000000; 0.408233133;    kilogram;   0;  pound;  72 / 5; 14.4;   ounce
+
+mass;   person; HK; 498951607 / 1000000000; 0.498951607;    kilogram;   1;  pound;  8 / 5;  1.6;    ounce
+mass;   person; HK; 45359237 / 100000000;   0.45359237; kilogram;   1;  pound;  0;  0.0;    ounce
+mass;   person; HK; 408233133 / 1000000000; 0.408233133;    kilogram;   0;  pound;  72 / 5; 14.4;   ounce
+
+mass-density;   blood-glucose;  001;    11 / 1000;  0.011;  kilogram-per-cubic-meter;   11 / 10;    1.1;    milligram-per-deciliter
+mass-density;   blood-glucose;  001;    1 / 100;    0.01;   kilogram-per-cubic-meter;   1;  1.0;    milligram-per-deciliter
+mass-density;   blood-glucose;  001;    9 / 1000;   0.009;  kilogram-per-cubic-meter;   9 / 10; 0.9;    milligram-per-deciliter
+
+mass-density;   default;    001;    11 / 10;    1.1;    kilogram-per-cubic-meter;   11 / 10;    1.1;    kilogram-per-cubic-meter
+mass-density;   default;    001;    1;  1.0;    kilogram-per-cubic-meter;   1;  1.0;    kilogram-per-cubic-meter
+mass-density;   default;    001;    9 / 10; 0.9;    kilogram-per-cubic-meter;   9 / 10; 0.9;    kilogram-per-cubic-meter
+
+power;  default;    001;    1100000000; 1.1E9;  kilogram-square-meter-per-cubic-second; 11 / 10;    1.1;    gigawatt
+power;  default;    001;    1000000000; 1.0E9;  kilogram-square-meter-per-cubic-second; 1;  1.0;    gigawatt
+power;  default;    001;    900000000;  9.0E8;  kilogram-square-meter-per-cubic-second; 900;    900.0;  megawatt
+power;  default;    001;    1000000;    1000000.0;  kilogram-square-meter-per-cubic-second; 1;  1.0;    megawatt
+power;  default;    001;    900000; 900000.0;   kilogram-square-meter-per-cubic-second; 900;    900.0;  kilowatt
+power;  default;    001;    1000;   1000.0; kilogram-square-meter-per-cubic-second; 1;  1.0;    kilowatt
+power;  default;    001;    900;    900.0;  kilogram-square-meter-per-cubic-second; 900;    900.0;  watt
+power;  default;    001;    1;  1.0;    kilogram-square-meter-per-cubic-second; 1;  1.0;    watt
+power;  default;    001;    9 / 10; 0.9;    kilogram-square-meter-per-cubic-second; 900;    900.0;  milliwatt
+power;  default;    001;    1 / 1000;   0.001;  kilogram-square-meter-per-cubic-second; 1;  1.0;    milliwatt
+power;  default;    001;    9 / 10000;  9.0E-4; kilogram-square-meter-per-cubic-second; 9 / 10; 0.9;    milliwatt
+
+power;  engine; 001;    1100;   1100.0; kilogram-square-meter-per-cubic-second; 11 / 10;    1.1;    kilowatt
+power;  engine; 001;    1000;   1000.0; kilogram-square-meter-per-cubic-second; 1;  1.0;    kilowatt
+power;  engine; 001;    900;    900.0;  kilogram-square-meter-per-cubic-second; 9 / 10; 0.9;    kilowatt
+
+power;  engine; GB; 410134929370248621 / 500000000000000;   820.2698587404972;  kilogram-square-meter-per-cubic-second; 11 / 10;    1.1;    horsepower
+power;  engine; GB; 37284993579113511 / 50000000000000; 745.6998715822702;  kilogram-square-meter-per-cubic-second; 1;  1.0;    horsepower
+power;  engine; GB; 335564942212021599 / 500000000000000;   671.1298844240432;  kilogram-square-meter-per-cubic-second; 9 / 10; 0.9;    horsepower
+
+pressure;   baromtrc;   001;    110;    110.0;  kilogram-per-meter-square-second;   11 / 10;    1.1;    hectopascal
+pressure;   baromtrc;   001;    100;    100.0;  kilogram-per-meter-square-second;   1;  1.0;    hectopascal
+pressure;   baromtrc;   001;    90; 90.0;   kilogram-per-meter-square-second;   9 / 10; 0.9;    hectopascal
+
+pressure;   baromtrc;   IN; 37250275043751 / 10000000000;   3725.0275043751;    kilogram-per-meter-square-second;   11 / 10;    1.1;    inch-ofhg
+pressure;   baromtrc;   IN; 3386388640341 / 1000000000; 3386.388640341; kilogram-per-meter-square-second;   1;  1.0;    inch-ofhg
+pressure;   baromtrc;   IN; 30477497763069 / 10000000000;   3047.7497763069;    kilogram-per-meter-square-second;   9 / 10; 0.9;    inch-ofhg
+
+pressure;   baromtrc;   BR; 110;    110.0;  kilogram-per-meter-square-second;   11 / 10;    1.1;    millibar
+pressure;   baromtrc;   BR; 100;    100.0;  kilogram-per-meter-square-second;   1;  1.0;    millibar
+pressure;   baromtrc;   BR; 90; 90.0;   kilogram-per-meter-square-second;   9 / 10; 0.9;    millibar
+
+pressure;   baromtrc;   MX; 293309252313 / 2000000000;  146.6546261565; kilogram-per-meter-square-second;   11 / 10;    1.1;    millimeter-ofhg
+pressure;   baromtrc;   MX; 26664477483 / 200000000;    133.322387415;  kilogram-per-meter-square-second;   1;  1.0;    millimeter-ofhg
+pressure;   baromtrc;   MX; 239980297347 / 2000000000;  119.9901486735; kilogram-per-meter-square-second;   9 / 10; 0.9;    millimeter-ofhg
+
+pressure;   default;    001;    1100000;    1100000.0;  kilogram-per-meter-square-second;   11 / 10;    1.1;    megapascal
+pressure;   default;    001;    1000000;    1000000.0;  kilogram-per-meter-square-second;   1;  1.0;    megapascal
+pressure;   default;    001;    900000; 900000.0;   kilogram-per-meter-square-second;   900000; 900000.0;   pascal
+pressure;   default;    001;    1;  1.0;    kilogram-per-meter-square-second;   1;  1.0;    pascal
+pressure;   default;    001;    9 / 10; 0.9;    kilogram-per-meter-square-second;   9 / 10; 0.9;    pascal
+
+pressure;   default;    GB; 97860875535731 / 12903200000;   7584.233022485197;  kilogram-per-meter-square-second;   11 / 10;    1.1;    pound-force-per-square-inch
+pressure;   default;    GB; 8896443230521 / 1290320000; 6894.757293168361;  kilogram-per-meter-square-second;   1;  1.0;    pound-force-per-square-inch
+pressure;   default;    GB; 80067989074689 / 12903200000;   6205.281563851525;  kilogram-per-meter-square-second;   9 / 10; 0.9;    pound-force-per-square-inch
+
+speed;  default;    001;    11 / 36;    0.3055555555555556; meter-per-second;   11 / 10;    1.1;    kilometer-per-hour
+speed;  default;    001;    5 / 18; 0.2777777777777778; meter-per-second;   1;  1.0;    kilometer-per-hour
+speed;  default;    001;    1 / 4;  0.25;   meter-per-second;   9 / 10; 0.9;    kilometer-per-hour
+
+speed;  default;    GB; 15367 / 31250;  0.491744;   meter-per-second;   11 / 10;    1.1;    mile-per-hour
+speed;  default;    GB; 1397 / 3125;    0.44704;    meter-per-second;   1;  1.0;    mile-per-hour
+speed;  default;    GB; 12573 / 31250;  0.402336;   meter-per-second;   9 / 10; 0.9;    mile-per-hour
+
+speed;  wind;   001;    11 / 36;    0.3055555555555556; meter-per-second;   11 / 10;    1.1;    kilometer-per-hour
+speed;  wind;   001;    5 / 18; 0.2777777777777778; meter-per-second;   1;  1.0;    kilometer-per-hour
+speed;  wind;   001;    1 / 4;  0.25;   meter-per-second;   9 / 10; 0.9;    kilometer-per-hour
+
+speed;  wind;   FI; 11 / 10;    1.1;    meter-per-second;   11 / 10;    1.1;    meter-per-second
+speed;  wind;   FI; 1;  1.0;    meter-per-second;   1;  1.0;    meter-per-second
+speed;  wind;   FI; 9 / 10; 0.9;    meter-per-second;   9 / 10; 0.9;    meter-per-second
+
+speed;  wind;   US; 15367 / 31250;  0.491744;   meter-per-second;   11 / 10;    1.1;    mile-per-hour
+speed;  wind;   US; 1397 / 3125;    0.44704;    meter-per-second;   1;  1.0;    mile-per-hour
+speed;  wind;   US; 12573 / 31250;  0.402336;   meter-per-second;   9 / 10; 0.9;    mile-per-hour
+
+temperature;    default;    001;    1097 / 4;   274.25; kelvin; 11 / 10;    1.1;    celsius
+temperature;    default;    001;    5483 / 20;  274.15; kelvin; 1;  1.0;    celsius
+temperature;    default;    001;    5481 / 20;  274.05; kelvin; 9 / 10; 0.9;    celsius
+
+temperature;    default;    US; 15359 / 60; 255.9833333333333;  kelvin; 11 / 10;    1.1;    fahrenheit
+temperature;    default;    US; 46067 / 180;    255.9277777777778;  kelvin; 1;  1.0;    fahrenheit
+temperature;    default;    US; 46057 / 180;    255.8722222222222;  kelvin; 9 / 10; 0.9;    fahrenheit
+
+temperature;    weather;    001;    1097 / 4;   274.25; kelvin; 11 / 10;    1.1;    celsius
+temperature;    weather;    001;    5483 / 20;  274.15; kelvin; 1;  1.0;    celsius
+temperature;    weather;    001;    5481 / 20;  274.05; kelvin; 9 / 10; 0.9;    celsius
+
+temperature;    weather;    BS; 15359 / 60; 255.9833333333333;  kelvin; 11 / 10;    1.1;    fahrenheit
+temperature;    weather;    BS; 46067 / 180;    255.9277777777778;  kelvin; 1;  1.0;    fahrenheit
+temperature;    weather;    BS; 46057 / 180;    255.8722222222222;  kelvin; 9 / 10; 0.9;    fahrenheit
+
+volume; default;    001;    11 / 10;    1.1;    cubic-meter;    11 / 10;    1.1;    cubic-meter
+volume; default;    001;    1;  1.0;    cubic-meter;    1;  1.0;    cubic-meter
+volume; default;    001;    9 / 10; 0.9;    cubic-meter;    900000; 900000.0;   cubic-centimeter
+volume; default;    001;    1 / 1000000;    1.0E-6; cubic-meter;    1;  1.0;    cubic-centimeter
+volume; default;    001;    9 / 10000000;   9.0E-7; cubic-meter;    9 / 10; 0.9;    cubic-centimeter
+
+volume; default;    GB; 608369751 / 19531250000;    0.0311485312512;    cubic-meter;    11 / 10;    1.1;    cubic-foot
+volume; default;    GB; 55306341 / 1953125000;  0.028316846592; cubic-meter;    1;  1.0;    cubic-foot
+volume; default;    GB; 497757069 / 19531250000;    0.0254851619328;    cubic-meter;    7776 / 5;   1555.2; cubic-inch
+volume; default;    GB; 2048383 / 125000000000; 1.6387064E-5;   cubic-meter;    1;  1.0;    cubic-inch
+volume; default;    GB; 18435447 / 1250000000000;   1.47483576E-5;  cubic-meter;    9 / 10; 0.9;    cubic-inch
+
+volume; fluid;  001;    11 / 10000; 0.0011; cubic-meter;    11 / 10;    1.1;    liter
+volume; fluid;  001;    1 / 1000;   0.001;  cubic-meter;    1;  1.0;    liter
+volume; fluid;  001;    9 / 10000;  9.0E-4; cubic-meter;    900;    900.0;  milliliter
+volume; fluid;  001;    1 / 1000000;    1.0E-6; cubic-meter;    1;  1.0;    milliliter
+volume; fluid;  001;    9 / 10000000;   9.0E-7; cubic-meter;    9 / 10; 0.9;    milliliter
+
+volume; fluid;  US; 5204941203 / 1250000000000; 0.0041639529624;    cubic-meter;    11 / 10;    1.1;    gallon
+volume; fluid;  US; 473176473 / 125000000000;   0.003785411784; cubic-meter;    1;  1.0;    gallon
+volume; fluid;  US; 4258588257 / 1250000000000; 0.0034068706056;    cubic-meter;    18 / 5; 3.6;    quart
+volume; fluid;  US; 473176473 / 500000000000;   9.46352946E-4;  cubic-meter;    1;  1.0;    quart
+volume; fluid;  US; 4258588257 / 5000000000000; 8.517176514E-4; cubic-meter;    9 / 5;  1.8;    pint
+volume; fluid;  US; 473176473 / 1000000000000;  4.73176473E-4;  cubic-meter;    1;  1.0;    pint
+volume; fluid;  US; 4258588257 / 10000000000000;    4.258588257E-4; cubic-meter;    9 / 5;  1.8;    cup
+volume; fluid;  US; 473176473 / 2000000000000;  2.365882365E-4; cubic-meter;    1;  1.0;    cup
+volume; fluid;  US; 4258588257 / 20000000000000;    2.1292941285E-4;    cubic-meter;    36 / 5; 7.2;    fluid-ounce
+volume; fluid;  US; 473176473 / 16000000000000; 2.95735295625E-5;   cubic-meter;    1;  1.0;    fluid-ounce
+volume; fluid;  US; 4258588257 / 160000000000000;   2.661617660625E-5;  cubic-meter;    9 / 5;  1.8;    tablespoon
+volume; fluid;  US; 473176473 / 32000000000000; 1.478676478125E-5;  cubic-meter;    1;  1.0;    tablespoon
+volume; fluid;  US; 4258588257 / 320000000000000;   1.3308088303125E-5; cubic-meter;    27 / 10;    2.7;    teaspoon
+volume; fluid;  US; 157725491 / 32000000000000; 4.92892159375E-6;   cubic-meter;    1;  1.0;    teaspoon
+volume; fluid;  US; 1419529419 / 320000000000000;   4.436029434375E-6;  cubic-meter;    9 / 10; 0.9;    teaspoon
+
+volume; fluid;  GB; 5000699 / 1000000000;   0.005000699;    cubic-meter;    11 / 10;    1.1;    gallon-imperial
+volume; fluid;  GB; 454609 / 100000000; 0.00454609; cubic-meter;    1;  1.0;    gallon-imperial
+volume; fluid;  GB; 4091481 / 1000000000;   0.004091481;    cubic-meter;    144;    144.0;  fluid-ounce-imperial
+volume; fluid;  GB; 454609 / 16000000000;   2.84130625E-5;  cubic-meter;    1;  1.0;    fluid-ounce-imperial
+volume; fluid;  GB; 4091481 / 160000000000; 2.557175625E-5; cubic-meter;    9 / 10; 0.9;    fluid-ounce-imperial
+
+volume; oil;    001;    109303765263 / 625000000000;    0.1748860244208;    cubic-meter;    11 / 10;    1.1;    barrel
+volume; oil;    001;    9936705933 / 62500000000;   0.158987294928; cubic-meter;    1;  1.0;    barrel
+volume; oil;    001;    89430353397 / 625000000000; 0.1430885654352;    cubic-meter;    9 / 10; 0.9;    barrel
+
+volume; vehicle;    US; 5204941203 / 1250000000000; 0.0041639529624;    cubic-meter;    11 / 10;    1.1;    gallon
+volume; vehicle;    US; 473176473 / 125000000000;   0.003785411784; cubic-meter;    1;  1.0;    gallon
+volume; vehicle;    US; 4258588257 / 1250000000000; 0.0034068706056;    cubic-meter;    9 / 10; 0.9;    gallon
+
+volume; vehicle;    001;    11 / 10000; 0.0011; cubic-meter;    11 / 10;    1.1;    liter
+volume; vehicle;    001;    1 / 1000;   0.001;  cubic-meter;    1;  1.0;    liter
+volume; vehicle;    001;    9 / 10000;  9.0E-4; cubic-meter;    9 / 10; 0.9;    liter
+
+year-duration;  default;    001;    11 / 10;    1.1;    year;   11 / 10;    1.1;    year
+year-duration;  default;    001;    1;  1.0;    year;   1;  1.0;    year
+year-duration;  default;    001;    9 / 10; 0.9;    year;   54 / 5; 10.8;   month
+year-duration;  default;    001;    1 / 12; 0.08333333333333333;    year;   1;  1.0;    month
+year-duration;  default;    001;    3 / 40; 0.075;  year;   9 / 10; 0.9;    month
+
+year-duration;  person-age; 001;    13 / 5; 2.6;    year;   13 / 5; 2.6;    year-person
+year-duration;  person-age; 001;    5 / 2;  2.5;    year;   5 / 2;  2.5;    year-person
+year-duration;  person-age; 001;    12 / 5; 2.4;    year;   2;  year-person;    24 / 5; 4.8;    month-person
+year-duration;  person-age; 001;    1;  1.0;    year;   1;  year-person;    0;  0.0;    month-person
+year-duration;  person-age; 001;    9 / 10; 0.9;    year;   54 / 5; 10.8;   month-person
+year-duration;  person-age; 001;    1 / 12; 0.08333333333333333;    year;   1;  1.0;    month-person
+year-duration;  person-age; 001;    3 / 40; 0.075;  year;   9 / 10; 0.9;    month-person
diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr/units/unitsTest.txt b/icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr/units/unitsTest.txt
new file mode 100644 (file)
index 0000000..82b7f3a
--- /dev/null
@@ -0,0 +1,194 @@
+# Test data for unit conversions
+#  Copyright © 1991-2020 Unicode, Inc.
+#  For terms of use, see http://www.unicode.org/copyright.html
+#  Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
+#  CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
+#
+# Format:
+#   Quantity    ;   x   ;   y   ;   conversion to y (rational)  ;   test: 1000 x ⟹ y
+#
+# Use: convert 1000 x units to the y unit; the result should match the final column,
+#   at the given precision. For example, when the last column is 159.1549,
+#   round to 4 decimal digits before comparing.
+# Note that certain conversions are approximate, such as degrees to radians
+#
+# Generation: Set GENERATE_TESTS in TestUnits.java, and look at TestParseUnit results.
+
+acceleration    ;   meter-per-square-second ;   meter-per-square-second ;   1 * x   ;   1,000.00
+acceleration    ;   g-force ;   meter-per-square-second ;   9.80665 * x ;   9806.65
+angle   ;   arc-second  ;   revolution  ;   0.0000625/81 * x    ;   7.716049E-4
+angle   ;   arc-minute  ;   revolution  ;   0.00125/27 * x  ;   0.0462963
+angle   ;   degree  ;   revolution  ;   0.025/9 * x ;   2.777778
+angle   ;   radian  ;   revolution  ;   65,501,488/411,557,987 * x  ;   159.1549
+angle   ;   revolution  ;   revolution  ;   1 * x   ;   1,000.00
+area    ;   square-centimeter   ;   square-meter    ;   0.0001 * x  ;   0.1
+area    ;   square-inch ;   square-meter    ;   0.00064516 * x  ;   0.64516
+area    ;   square-foot ;   square-meter    ;   0.09290304 * x  ;   92.90304
+area    ;   square-yard ;   square-meter    ;   0.83612736 * x  ;   836.1274
+area    ;   square-meter    ;   square-meter    ;   1 * x   ;   1,000.00
+area    ;   dunam   ;   square-meter    ;   1,000 * x   ;   1000000.0
+area    ;   acre    ;   square-meter    ;   4,046.8564224 * x   ;   4046856.0
+area    ;   hectare ;   square-meter    ;   10,000 * x  ;   1.0E7
+area    ;   square-kilometer    ;   square-meter    ;   1,000,000 * x   ;   1.0E9
+area    ;   square-mile ;   square-meter    ;   2,589,988.110336 * x    ;   2.589988E9
+concentration   ;   millimole-per-liter ;   item-per-cubic-meter    ;   602,214,076,000,000,000,000,000 * x ;   6.022141E26
+consumption ;   liter-per-100-kilometer ;   cubic-meter-per-meter   ;   0.00000001 * x  ;   1.0E-5
+consumption ;   liter-per-kilometer ;   cubic-meter-per-meter   ;   0.000001 * x    ;   0.001
+consumption-inverse ;   mile-per-gallon-imperial    ;   meter-per-cubic-meter   ;   160,934,400,000/454,609 * x ;   3.540062E8
+consumption-inverse ;   mile-per-gallon ;   meter-per-cubic-meter   ;   48,000,000,000/112,903 * x  ;   4.251437E8
+digital ;   bit ;   bit ;   1 * x   ;   1,000.00
+digital ;   byte    ;   bit ;   8 * x   ;   8000.0
+digital ;   kilobit ;   bit ;   1,000 * x   ;   1000000.0
+digital ;   kilobyte    ;   bit ;   8,000 * x   ;   8000000.0
+digital ;   megabit ;   bit ;   1,000,000 * x   ;   1.0E9
+digital ;   megabyte    ;   bit ;   8,000,000 * x   ;   8.0E9
+digital ;   gigabit ;   bit ;   1,000,000,000 * x   ;   1.0E12
+digital ;   gigabyte    ;   bit ;   8,000,000,000 * x   ;   8.0E12
+digital ;   terabit ;   bit ;   1,000,000,000,000 * x   ;   1.0E15
+digital ;   terabyte    ;   bit ;   8,000,000,000,000 * x   ;   8.0E15
+digital ;   petabyte    ;   bit ;   8,000,000,000,000,000 * x   ;   8.0E18
+duration    ;   nanosecond  ;   second  ;   0.000000001 * x ;   1.0E-6
+duration    ;   microsecond ;   second  ;   0.000001 * x    ;   0.001
+duration    ;   millisecond ;   second  ;   0.001 * x   ;   1.0
+duration    ;   second  ;   second  ;   1 * x   ;   1,000.00
+duration    ;   minute  ;   second  ;   60 * x  ;   60000.0
+duration    ;   hour    ;   second  ;   3,600 * x   ;   3600000.0
+duration    ;   day ;   second  ;   86,400 * x  ;   8.64E7
+duration    ;   day-person  ;   second  ;   86,400 * x  ;   8.64E7
+duration    ;   week    ;   second  ;   604,800 * x ;   6.048E8
+duration    ;   week-person ;   second  ;   604,800 * x ;   6.048E8
+electric-current    ;   milliampere ;   ampere  ;   0.001 * x   ;   1.0
+electric-current    ;   ampere  ;   ampere  ;   1 * x   ;   1,000.00
+electric-resistance ;   ohm ;   kilogram-square-meter-per-cubic-second-square-ampere    ;   1 * x   ;   1000.0
+energy  ;   electronvolt    ;   kilogram-square-meter-per-square-second ;   0.0000000000000000001602177 * x ;   1.602177E-16
+energy  ;   dalton  ;   kilogram-square-meter-per-square-second ;   0.00000000014924180856 * x  ;   1.492418E-7
+energy  ;   joule   ;   kilogram-square-meter-per-square-second ;   1 * x   ;   1000.0
+energy  ;   newton-meter    ;   kilogram-square-meter-per-square-second ;   1 * x   ;   1000.0
+energy  ;   pound-force-foot    ;   kilogram-square-meter-per-square-second ;   1.3558179483314004 * x  ;   1355.818
+energy  ;   calorie ;   kilogram-square-meter-per-square-second ;   4.184 * x   ;   4184.0
+energy  ;   kilojoule   ;   kilogram-square-meter-per-square-second ;   1,000 * x   ;   1000000.0
+energy  ;   british-thermal-unit    ;   kilogram-square-meter-per-square-second ;   9,489.1523804/9 * x ;   1054350.0
+energy  ;   foodcalorie ;   kilogram-square-meter-per-square-second ;   4,184 * x   ;   4184000.0
+energy  ;   kilocalorie ;   kilogram-square-meter-per-square-second ;   4,184 * x   ;   4184000.0
+energy  ;   kilowatt-hour   ;   kilogram-square-meter-second-per-cubic-second   ;   3,600,000 * x   ;   3.6E9
+energy  ;   therm-us    ;   kilogram-square-meter-per-square-second ;   105,480,400 * x ;   1.054804E11
+force   ;   newton  ;   kilogram-meter-per-square-second    ;   1 * x   ;   1000.0
+force   ;   pound-force ;   kilogram-meter-per-square-second    ;   4.4482216152605 * x ;   4448.222
+frequency   ;   hertz   ;   revolution-per-second   ;   1 * x   ;   1000.0
+frequency   ;   kilohertz   ;   revolution-per-second   ;   1,000 * x   ;   1000000.0
+frequency   ;   megahertz   ;   revolution-per-second   ;   1,000,000 * x   ;   1.0E9
+frequency   ;   gigahertz   ;   revolution-per-second   ;   1,000,000,000 * x   ;   1.0E12
+graphics    ;   dot ;   pixel   ;   1 * x   ;   1000.0
+graphics    ;   pixel   ;   pixel   ;   1 * x   ;   1,000.00
+graphics    ;   megapixel   ;   pixel   ;   1,000,000 * x   ;   1.0E9
+length  ;   picometer   ;   meter   ;   0.000000000001 * x  ;   1.0E-9
+length  ;   nanometer   ;   meter   ;   0.000000001 * x ;   1.0E-6
+length  ;   micrometer  ;   meter   ;   0.000001 * x    ;   0.001
+length  ;   point   ;   meter   ;   0.003175/9 * x  ;   0.3527778
+length  ;   millimeter  ;   meter   ;   0.001 * x   ;   1.0
+length  ;   centimeter  ;   meter   ;   0.01 * x    ;   10.0
+length  ;   inch    ;   meter   ;   0.0254 * x  ;   25.4
+length  ;   decimeter   ;   meter   ;   0.1 * x ;   100.0
+length  ;   foot    ;   meter   ;   0.3048 * x  ;   304.8
+length  ;   yard    ;   meter   ;   0.9144 * x  ;   914.4
+length  ;   meter   ;   meter   ;   1 * x   ;   1,000.00
+length  ;   fathom  ;   meter   ;   1.8288 * x  ;   1828.8
+length  ;   furlong ;   meter   ;   201.168 * x ;   201168.0
+length  ;   kilometer   ;   meter   ;   1,000 * x   ;   1000000.0
+length  ;   mile    ;   meter   ;   1,609.344 * x   ;   1609344.0
+length  ;   nautical-mile   ;   meter   ;   1,852 * x   ;   1852000.0
+length  ;   mile-scandinavian   ;   meter   ;   10,000 * x  ;   1.0E7
+length  ;   100-kilometer   ;   meter   ;   100,000 * x ;   1.0E8
+length  ;   earth-radius    ;   meter   ;   6,378,100 * x   ;   6.3781E9
+length  ;   solar-radius    ;   meter   ;   695,700,000 * x ;   6.957E11
+length  ;   astronomical-unit   ;   meter   ;   149,597,900,000 * x ;   1.495979E14
+length  ;   light-year  ;   meter   ;   9,460,730,000,000,000 * x   ;   9.46073E18
+length  ;   parsec  ;   meter   ;   30,856,780,000,000,000 * x  ;   3.085678E19
+luminous-flux   ;   lux ;   candela-square-meter-per-square-meter   ;   1 * x   ;   1000.0
+luminous-intensity  ;   candela ;   candela ;   1 * x   ;   1,000.00
+mass    ;   microgram   ;   kilogram    ;   0.000000001 * x ;   1.0E-6
+mass    ;   milligram   ;   kilogram    ;   0.000001 * x    ;   0.001
+mass    ;   carat   ;   kilogram    ;   0.0002 * x  ;   0.2
+mass    ;   gram    ;   kilogram    ;   0.001 * x   ;   1.0
+mass    ;   ounce   ;   kilogram    ;   0.028349523125 * x  ;   28.34952
+mass    ;   ounce-troy  ;   kilogram    ;   0.03110348 * x  ;   31.10348
+mass    ;   pound   ;   kilogram    ;   0.45359237 * x  ;   453.5924
+mass    ;   kilogram    ;   kilogram    ;   1 * x   ;   1,000.00
+mass    ;   stone   ;   kilogram    ;   6.35029318 * x  ;   6350.293
+mass    ;   ton ;   kilogram    ;   907.18474 * x   ;   907184.7
+mass    ;   metric-ton  ;   kilogram    ;   1,000 * x   ;   1000000.0
+mass    ;   earth-mass  ;   kilogram    ;   5,972,200,000,000,000,000,000,000 * x   ;   5.9722E27
+mass    ;   solar-mass  ;   kilogram    ;   1,988,470,000,000,000,000,000,000,000,000 * x   ;   1.98847E33
+mass-density    ;   milligram-per-deciliter ;   kilogram-per-cubic-meter    ;   0.01 * x    ;   10.0
+portion ;   permillion  ;   portion ;   0.000001 * x    ;   0.001
+portion ;   permyriad   ;   portion ;   0.0001 * x  ;   0.1
+portion ;   permille    ;   portion ;   0.001 * x   ;   1.0
+portion ;   percent ;   portion ;   0.01 * x    ;   10.0
+portion ;   karat   ;   portion ;   0.125/3 * x ;   41.66667
+portion ;   portion ;   portion ;   1 * x   ;   1,000.00
+power   ;   milliwatt   ;   kilogram-square-meter-per-cubic-second  ;   0.001 * x   ;   1.0
+power   ;   watt    ;   kilogram-square-meter-per-cubic-second  ;   1 * x   ;   1000.0
+power   ;   horsepower  ;   kilogram-square-meter-per-cubic-second  ;   745.69987158227022 * x  ;   745699.9
+power   ;   kilowatt    ;   kilogram-square-meter-per-cubic-second  ;   1,000 * x   ;   1000000.0
+power   ;   megawatt    ;   kilogram-square-meter-per-cubic-second  ;   1,000,000 * x   ;   1.0E9
+power   ;   gigawatt    ;   kilogram-square-meter-per-cubic-second  ;   1,000,000,000 * x   ;   1.0E12
+power   ;   solar-luminosity    ;   kilogram-square-meter-per-cubic-second  ;   382,800,000,000,000,000,000,000,000 * x ;   3.828E29
+pressure    ;   pascal  ;   kilogram-per-meter-square-second    ;   1 * x   ;   1000.0
+pressure    ;   hectopascal ;   kilogram-per-meter-square-second    ;   100 * x ;   100000.0
+pressure    ;   millibar    ;   kilogram-per-meter-square-second    ;   100 * x ;   100000.0
+pressure    ;   millimeter-ofhg ;   kilogram-meter-per-square-meter-square-second   ;   133.322387415 * x   ;   133322.4
+pressure    ;   kilopascal  ;   kilogram-per-meter-square-second    ;   1,000 * x   ;   1000000.0
+pressure    ;   inch-ofhg   ;   kilogram-meter-per-square-meter-square-second   ;   3,386.388640341 * x ;   3386389.0
+pressure    ;   pound-force-per-square-inch ;   kilogram-meter-per-square-meter-square-second   ;   111,205,540.3815125/16,129 * x  ;   6894757.0
+pressure    ;   bar ;   kilogram-per-meter-square-second    ;   100,000 * x ;   1.0E8
+pressure    ;   atmosphere  ;   kilogram-per-meter-square-second    ;   101,325 * x ;   1.01325E8
+pressure    ;   megapascal  ;   kilogram-per-meter-square-second    ;   1,000,000 * x   ;   1.0E9
+pressure-per-length ;   ofhg    ;   kilogram-per-square-meter-square-second ;   133,322.387415 * x  ;   1.333224E8
+resolution  ;   dot-per-inch    ;   pixel-per-meter ;   5,000/127 * x   ;   39370.08
+resolution  ;   pixel-per-inch  ;   pixel-per-meter ;   5,000/127 * x   ;   39370.08
+resolution  ;   dot-per-centimeter  ;   pixel-per-meter ;   100 * x ;   100000.0
+resolution  ;   pixel-per-centimeter    ;   pixel-per-meter ;   100 * x ;   100000.0
+speed   ;   kilometer-per-hour  ;   meter-per-second    ;   2.5/9 * x   ;   277.7778
+speed   ;   mile-per-hour   ;   meter-per-second    ;   0.44704 * x ;   447.04
+speed   ;   knot    ;   meter-per-second    ;   4.63/9 * x  ;   514.4444
+speed   ;   meter-per-second    ;   meter-per-second    ;   1 * x   ;   1,000.00
+substance-amount    ;   item    ;   item    ;   1 * x   ;   1,000.00
+substance-amount    ;   mole    ;   item    ;   602,214,076,000,000,000,000,000 * x ;   6.022141E26
+temperature ;   fahrenheit  ;   kelvin  ;   5/9 * x - 2,298.35/9    ;   810.9278
+temperature ;   kelvin  ;   kelvin  ;   1 * x   ;   1,000.00
+temperature ;   celsius ;   kelvin  ;   1 * x - 273.15  ;   1273.15
+typewidth   ;   em  ;   em  ;   1 * x   ;   1,000.00
+voltage ;   volt    ;   kilogram-square-meter-per-cubic-second-ampere   ;   1 * x   ;   1000.0
+volume  ;   cubic-centimeter    ;   cubic-meter ;   0.000001 * x    ;   0.001
+volume  ;   milliliter  ;   cubic-meter ;   0.000001 * x    ;   0.001
+volume  ;   teaspoon    ;   cubic-meter ;   0.00000492892159375 * x ;   0.004928922
+volume  ;   centiliter  ;   cubic-meter ;   0.00001 * x ;   0.01
+volume  ;   tablespoon  ;   cubic-meter ;   0.00001478676478125 * x ;   0.01478676
+volume  ;   cubic-inch  ;   cubic-meter ;   0.000016387064 * x  ;   0.01638706
+volume  ;   fluid-ounce-imperial    ;   cubic-meter ;   0.0000284130625 * x ;   0.02841306
+volume  ;   fluid-ounce ;   cubic-meter ;   0.0000295735295625 * x  ;   0.02957353
+volume  ;   deciliter   ;   cubic-meter ;   0.0001 * x  ;   0.1
+volume  ;   cup ;   cubic-meter ;   0.0002365882365 * x ;   0.2365882
+volume  ;   cup-metric  ;   cubic-meter ;   0.00025 * x ;   0.25
+volume  ;   pint    ;   cubic-meter ;   0.000473176473 * x  ;   0.4731765
+volume  ;   pint-metric ;   cubic-meter ;   0.0005 * x  ;   0.5
+volume  ;   quart   ;   cubic-meter ;   0.000946352946 * x  ;   0.9463529
+volume  ;   liter   ;   cubic-meter ;   0.001 * x   ;   1.0
+volume  ;   gallon  ;   cubic-meter ;   0.003785411784 * x  ;   3.785412
+volume  ;   gallon-imperial ;   cubic-meter ;   0.00454609 * x  ;   4.54609
+volume  ;   cubic-foot  ;   cubic-meter ;   0.028316846592 * x  ;   28.31685
+volume  ;   bushel  ;   cubic-meter ;   0.03523907016688 * x    ;   35.23907
+volume  ;   hectoliter  ;   cubic-meter ;   0.1 * x ;   100.0
+volume  ;   barrel  ;   cubic-meter ;   0.158987294928 * x  ;   158.9873
+volume  ;   cubic-yard  ;   cubic-meter ;   0.764554857984 * x  ;   764.5549
+volume  ;   cubic-meter ;   cubic-meter ;   1 * x   ;   1,000.00
+volume  ;   megaliter   ;   cubic-meter ;   1,000 * x   ;   1000000.0
+volume  ;   acre-foot   ;   cubic-meter ;   1,233.48183754752 * x   ;   1233482.0
+volume  ;   cubic-kilometer ;   cubic-meter ;   1,000,000,000 * x   ;   1.0E12
+volume  ;   cubic-mile  ;   cubic-meter ;   4,168,181,825.440579584 * x ;   4.168182E12
+year-duration   ;   month   ;   year    ;   0.25/3 * x  ;   83.33333
+year-duration   ;   month-person    ;   year    ;   0.25/3 * x  ;   83.33333
+year-duration   ;   year    ;   year    ;   1 * x   ;   1,000.00
+year-duration   ;   year-person ;   year    ;   1 * x   ;   1000.0
+year-duration   ;   decade  ;   year    ;   10 * x  ;   10000.0
+year-duration   ;   century ;   year    ;   100 * x ;   100000.0
diff --git a/tools/cldr/README.md b/tools/cldr/README.md
new file mode 100644 (file)
index 0000000..b25cf16
--- /dev/null
@@ -0,0 +1,19 @@
+<!--- © 2020 and later: Unicode, Inc. and others. ---> 
+<!--- License & terms of use: http://www.unicode.org/copyright.html#License --->
+
+# Tools and build scripts for updating data originating from CLDR
+
+## CLDR test data
+
+The ant [build.xml](build.xml) file takes care of copying some CLDR
+test data directories to both the ICU4C and ICU4J source trees. To add
+more directories to the list, modify the `cldrTestData` fileset.
+
+## cldr-to-icu
+
+The cldr-to-icu directory contains tools to convert from CLDR's XML
+data to ICU resource files.
+
+See [cldr-to-icu/README.txt](cldr-to-icu/README.txt) and
+[cldr-icu-readme.txt](../../icu4c/source/data/cldr-icu-readme.txt) for
+more information.
index 76aaec7af7434aa6179706893ab62ab5f7682563..de2cdc63ac3e2b6906cc25b0d39d74e78a24ec0f 100644 (file)
      -->
 
 <!-- Using the directory of this build.xml file as ${basedir}. -->
-<project name="CLDR" default="install" basedir=".">
-
-    <!-- Installs prerequisite data from CLDR (test data and CLDR libraries).
-         This target will not rebuild the ICU data however (since that's a
-         lengthy process). -->
-    <target name="install" depends="clean, copy-cldr-testdata, install-cldr-libs"/>
-
-    <!-- Cleans CLDR dependencies (testdata, CLDR libraries). This target does
-         not delete any generated ICU data. -->
-    <target name="clean" depends="clean-cldr-testdata"/>
+<project name="CLDR" basedir=".">
 
     <!-- Initialize any properties not already set on the command line. -->
     <target name="init-args">
         </condition>
         <fail unless="cldrDir"
              message="Set the CLDR_DIR environment variable (or cldrDir property) to the top level CLDR source directory (containing 'common')."/>
+        <property name="testDataDir4C" value="${basedir}/../../icu4c/source/test/testdata/cldr"/>
+        <property name="testDataDir4J" value="${basedir}/../../icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr"/>
+    </target>
+
+    <!-- Copies CLDR test data directories, after deleting previous
+         contents to prevent inconsistent state. -->
+    <target name="copy-cldr-testdata" depends="init-args, clean-cldr-testdata">
+        <!-- CLDR test data directories to be copied into ICU. -->
+        <fileset id="cldrTestData" dir="${cldrDir}/common/testData">
+            <!-- Add directories here to control which test data is installed. -->
+            <include name="units/**"/> <!-- Used in UnitsTest tests -->
+        </fileset>
+
+        <copy todir="${testDataDir4C}">
+            <fileset refid="cldrTestData"/>
+        </copy>
+        <copy todir="${testDataDir4J}">
+            <fileset refid="cldrTestData"/>
+        </copy>
     </target>
 
-    <!-- TODO: Add properties and targets for copying test data. -->
+    <!-- Deletes CLDR test data -->
+    <target name="clean-cldr-testdata" depends="init-args">
+        <delete dir="${testDataDir4C}"/>
+        <delete dir="${testDataDir4J}"/>
+    </target>
 
     <!-- Builds the ICU data, using the Ant build file in the cldr-to-icu directory and passing.
          through any specified arguments for controlling the build. If you need more control when