xref: /aosp_15_r20/external/cldr/common/testData/units/unitLocalePreferencesTest.txt (revision 912701f9769bb47905792267661f0baf2b85bed5)
1*912701f9SAndroid Build Coastguard Worker# Test data for unit locale preferences
2*912701f9SAndroid Build Coastguard Worker#  Copyright © 1991-2024 Unicode, Inc.
3*912701f9SAndroid Build Coastguard Worker#  For terms of use, see http://www.unicode.org/copyright.html
4*912701f9SAndroid Build Coastguard Worker#  SPDX-License-Identifier: Unicode-3.0
5*912701f9SAndroid Build Coastguard Worker#  CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
6*912701f9SAndroid Build Coastguard Worker#
7*912701f9SAndroid Build Coastguard Worker# Format:
8*912701f9SAndroid Build Coastguard Worker#	input-unit; amount; usage;	languageTag; expected-unit; expected-amount # comment
9*912701f9SAndroid Build Coastguard Worker#
10*912701f9SAndroid Build Coastguard Worker#   • The amounts are both rationals
11*912701f9SAndroid Build Coastguard Worker#   • The comment is optional (if it isn't present the # can be omitted)
12*912701f9SAndroid Build Coastguard Worker#
13*912701f9SAndroid Build Coastguard Worker# Use: Convert the Input amount & unit according to the Usage and Locale.
14*912701f9SAndroid Build Coastguard Worker#	 The result should match the Expected amount and unit.
15*912701f9SAndroid Build Coastguard Worker#
16*912701f9SAndroid Build Coastguard Worker#	 The input and expected output units are unit identifers; in particular, the output does not have further processing:
17*912701f9SAndroid Build Coastguard Worker#		 • no localization
18*912701f9SAndroid Build Coastguard Worker#
19*912701f9SAndroid Build Coastguard Workerfahrenheit;	1;	default;	en-u-rg-uszzzz-ms-ussystem-mu-celsius;	celsius;	-155/9	# mu > ms > rg > (likely) region
20*912701f9SAndroid Build Coastguard Workerfahrenheit;	1;	default;	en-u-rg-uszzzz-ms-ussystem-mu-celsius;	celsius;	-155/9
21*912701f9SAndroid Build Coastguard Workerfahrenheit;	1;	default;	en-u-rg-uszzzz-ms-metric;	celsius;	-155/9
22*912701f9SAndroid Build Coastguard Workerfahrenheit;	1;	default;	en-u-rg-dezzzz;	celsius;	-155/9
23*912701f9SAndroid Build Coastguard Workerfahrenheit;	1;	default;	en-DE;	celsius;	-155/9	# explicit region > likely region
24*912701f9SAndroid Build Coastguard Workerfahrenheit;	1;	default;	en-US;	fahrenheit;	1
25*912701f9SAndroid Build Coastguard Workerfahrenheit;	1;	default;	en;	fahrenheit;	1	# likely region = US
26*912701f9SAndroid Build Coastguard Workergallon-imperial;	2.5;	fluid;	en-u-rg-uszzzz-ms-metric;	liter;	11.365225
27*912701f9SAndroid Build Coastguard Workergallon-imperial;	2.5;	fluid;	en-u-rg-dezzzz;	liter;	11.365225
28*912701f9SAndroid Build Coastguard Workergallon-imperial;	2.5;	fluid;	en-DE;	liter;	11.365225
29*912701f9SAndroid Build Coastguard Workergallon-imperial;	2.5;	fluid;	en-US-u-rg-uszzzz-ms-uksystem;	gallon-imperial;	2.5	# ms-uksystem should behave like GB
30*912701f9SAndroid Build Coastguard Workergallon-imperial;	2.5;	fluid;	en-u-rg-gbzzzz;	gallon-imperial;	2.5
31*912701f9SAndroid Build Coastguard Workergallon-imperial;	2.5;	fluid;	en-GB;	gallon-imperial;	2.5
32*912701f9SAndroid Build Coastguard Workergallon-imperial;	2.5;	fluid;	en-u-rg-uszzzz-ms-ussystem;	gallon;	1,420,653,125/473176473
33*912701f9SAndroid Build Coastguard Workergallon-imperial;	2.5;	fluid;	en-u-rg-uszzzz;	gallon;	1,420,653,125/473176473
34*912701f9SAndroid Build Coastguard Workergallon-imperial;	2.5;	fluid;	en-US;	gallon;	1,420,653,125/473176473
35*912701f9SAndroid Build Coastguard Workergallon-imperial;	2.5;	fluid;	en;	gallon;	1,420,653,125/473176473	# likely region = US
36*912701f9SAndroid Build Coastguard Workerampere;	2.5;	default;	en;	ampere;	2.5	# an input unit whose quantity has no preference data should get base units
37*912701f9SAndroid Build Coastguard Workerpound-force-foot;	12,345;	default;	en;	kilowatt-hour;	0.004649325714486427205
38*912701f9SAndroid Build Coastguard Workerkilocandela;	1;	default;	en;	candela;	1,000	# an input unit whose quantity has no preference data should get base units
39*912701f9SAndroid Build Coastguard Workercandela-per-byte;	1;	default;	en;	candela-per-bit;	0.125	# an input unit that has no quantity should get base units
40*912701f9SAndroid Build Coastguard Workercandela-per-cubic-foot;	1;	default;	en;	candela-per-cubic-meter;	1,953,125,000/55306341	# an input unit that has no quantity should get base units
41*912701f9SAndroid Build Coastguard Workerfoot;	1;	default;	de-u-mu-celsius;	centimeter;	30.48	# a -mu unit that is not convertible from the input unit should get ignored
42*912701f9SAndroid Build Coastguard Worker#pound;	28;	default;	en-u-mu-stone;	stone;	2 # only temperature units are supported
43